約 4,799,674 件
https://w.atwiki.jp/linux_kai/pages/27.html
Total - (Today - Yesterday - ) 最終更新日 2010/06/13 04 15 当然ながらインストールなどすべての作業は 自己責任でお願いします。 1.debianインストール後から... 2.PCのIPアドレス固定 コメント 1.debianインストール後から... パッケージを更新して、OSを最新の状態にします。 $ sudo apt-get update $ sudo apt-get upgrade # ここでOS再起動を求められたら、OS再起動します。 Kaiを使用するLinuxアカウントにsudoを許可します。 $ su - # /usr/sbin/visudo ## Allow root to run any commands anywhere root ALL=(ALL) ALL ユーザー名 ALL=(ALL) ALL ← この行を追加します # exit $ ビルドに必要なパッケージを追加します。 $ sudo apt-get install build-essential LinuxWireless拡張操作用ツールを追加します。 $ sudo apt-get install wireless-tools 2.PCのIPアドレス固定 ネットワーク設定ファイルを編集します。 $ sudo vi /etc/network/interfaces #iface eth0 inet dhcp ← この行をコメントにします auto eth0 ← この行以降を追加します iface eth0 inet static address xxx.xxx.xxx.xxx network xxx.xxx.xxx.xxx broadcast xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx gateway xxx.xxx.xxx.xxx ネットワークを再起動します $ sudo /etc/init.d/networking restart 接続情報で、変更されたIPアドレスを確認します。 $ sudo ifconfig 以上で主な準備は終わり。 次は、kaiの設定です。 上へ戻る コメント 名前 コメント
https://w.atwiki.jp/dirtyface/pages/21.html
玄箱debian化の手順(玄箱無印で確認済み) ※まだ書きかけです!! 事前説明 ここで説明しているのはWindowsXPと玄箱無印で私が確認した内容です。 必ずしも同じ状況にならない可能性がありますので都度読み替えてください。 たとえ壊れても私は責任を持ちません。 また、viエディタの使い方などは別のページで調べてきてください。 事前準備 以下のソフトを準備してください。 FTPで接続するため、「FFFTP」をインストールして置くSota s Web Page telnetで接続するため、「UTF-8 Tera Term Pro with TTSSH2」をインストールして置く。窓の杜sourceforge.jp Project OSとなる「debian_2006_06_10_dist.tgz」をダウンロードして置く。玄箱うぉううぉう♪ debian化手順 前提条件=HDDを搭載済みの玄箱が正常に動いていること。 玄箱にアクセスし、共有フォルダ「share」にダウンロードしておいた[ 「debian_2006_06_10_dist.tgz」を置く。 玄箱にUTF-8 Tera Term Pro with TTSSH2(以後、Tera Term)でログインします。※パスワードは入力しても画面に出ませんがそれで正常です。 玄箱無印ログインID ユーザー名「root」 パスワード「kuro」 玄箱HGログインID ユーザー名「root」 パスワード「kuroadmin」 # cd /mnt/share 正常に実行されると以下のようになります。 /mnt/share# ファイルが見えているか確認します。 /mnt/share#ls 以下のように表示されれば問題ありません。 /mnt/share#ls debian_2006_06_10_dist.tgz /mnt/share# 玄箱の中でファイルを展開します。 /mnt/share#tar xzf debian_2006_06_10_dist.tgz 終わると以下の様な表示になります。 /mnt/share#tar xzf debian_2006_06_10_dist.tgz /mnt/share# 正常に展開されたか確認します。 /mnt/share# ls 以下のように表示されれば正常です。 /mnt/share# ls bin dev lib proc sys var boot etc lost+found root tmp debian-sarge-2.6.16.9-KUROBOX-20060422.tgz home mnt sbin usr /mnt/share# 展開前の元ファイルを削除する。 /mnt/share# rm debian-sarge-2.6.16.9-KUROBOX-20060422.tgz 設定ファイルを修正するためフォルダを移動する。 /mnt/share# cd /mnt/share/etc viエディタを起動して設定ファイルを編集します。 /mnt/share/etc# vi hostname EMモードに移行するにはTera Termで玄箱に接続して下記のコマンドを実行します。--玄箱無印ログインID ユーザー名「root」 パスワード「kuro」 玄箱HGログインID ユーザー名「root」 パスワード「kuroadmin」 #echo -n NGNG /dev/fl3 #reboot 玄箱が再起動してEMモードで起動します。 EMモードの時のIPアドレスは以下のように決定されます。 DHCPがあるときはそこからIPを自動取得 DHCPがないときは192.168.0.150が設定される- 自動取得された場合は、玄人志向のファームウェアアップデータで確認します。 192.168.0.150(PCと直接繋いでいる時等)は、PC側のアドレスも192.168.0.***にする必要があります。 玄人志向玄箱ページ 次のコマンドを実行してパーティーションをすべて削除します。 # /sbin/mfdisk -e /dev/hda 次にパーティーションを切り直します。 # sh /sbin/mkfilesystem.sh 通常モードへの移行方法 (EMモード解除) #echo -n OKOK /dev/fl3 #reboot 再起動すると通常モードで動作します。 玄箱記録
https://w.atwiki.jp/atwikimyj/pages/38.html
mod_perl2では実行しているスクリプトのあるディレクトリを カレントディレクトリとして認識してくれないので面倒! という記事によくあたる。へえ、それ面倒だな、、と思っていたが、 いろいろと調べるとそうとは限らないようだ。 カレントディレクトリがどうなるかは、動作モデルによるらしい。 参考: TurboLinux「Apache MPM を変更する」 http //www.turbolinux.co.jp/support/document/knowledge/627.html えーっと、Apache2では動作モデルがいっぱい選択できる。その中の prefork動作とWorker動作について説明すると、、 prefork動作ではクライアントからのリクエストがある度 に子プロセスを作成する。 Worker動作では複数のプロセスとスレッドによりリクエストを処理します。 複数のスレッドは同じメモリを共有し、連携して処理が行われます。 スレッドってなんじゃい?linuxでのマルチスレッド、マルチプロセスの話は hatenaの伊藤さんが詳しく説明されています。 Hatena Diary naoya「マルチスレッドのコンテキスト切り替えに伴うコスト」 http //d.hatena.ne.jp/naoya/20071010/1192040413 (社内勉強用の資料のようです。いいなあ。はてな入ってperlやりてえなあ でもこの資料まともに読めない自分のような人間は必要ないだろうなあ) preforkは従来のmod_perlと同じやり方となり、安定性がある。 worker動作をさせたほうが、効率的で、処理が速い、らしい。 よほどの理由がない限り、worker動作を使いこなせるはずもない。 また、preforkはスクリプトのあるディレクトリをカレントディレクトリ として認識してくれるので、やはりこちらか。ということで、 下記のサイトを参考にPrefork専用のハンドラーを利用するということにする。 adiary開発日誌「2006/04/15(土) mod_perl で chdir」 http //adiary.blog.abk.nu/07 TransFreeBSDの日記 「[perl]ModPerl {PerlRun,Registry,RegistryPrefork}でのカレントディレクトリ、BEGINブロック、@INCの扱いメモ」 http //freebsd.g.hatena.ne.jp/TransFreeBSD/20061124/p1 日誌「Apache MPM」 http //tkusano.asablo.jp/blog/2006/11/10/745619
https://w.atwiki.jp/anthony/pages/36.html
Debian Wheezyのインストール前準備 以前から玄箱PROはDebian化して運用していたのですが、この度家庭内LAN上のLinkStationがHDD故障でトラブルに逢ったことが原因で、色々と整理を始めていました。 いつも分からないコマンドがあるとネットで調べていたのですが、色々なところに書いてあるのに私の環境では使えないものがあることに気が付きました。 例えば apt-get autoremove 試しにinstallしては不要なuninstallなどしていたので、deborphanなどで依存関係を整理して削除などしていたのですが、こんな便利なものがあるなら是非使いたい。 Debian etch 4.0が古いのが問題で、最新のDebian wheezy 7.0まで上げればよいのだと思い知り、更にネットで「kurobox pro wheezy」で調べてみると"出来る"ことが分かったので、思い切って上げてみることにしました。 新しいHDDに入れ替えて新規にDebian環境をセットアップ おそらくこれが一番トラブルが少ないであろうということで、新しいHDDに入れ替えてセットアップすることにしました。 使うのはノートPCのSSD化などで余っていた2.5inch 250G 5200rpmのHDDです。 玄箱PROはHDDのマウンターに2.5inch用のネジ穴が用意されているので、別途マウンターを用意する必要もありません。 シリアルコンソール必須です。私が使っているのはUP12C USB PDC Converterというやつです。 Windows7用のドライバー(U232-13.2.98.130315.zip)をインストールして準備完了。 TeraTermのSerial Port設定 Baud rate 115200 bps Data 8 bit Parity none Stop 1 bit Flow contro none 玄箱PROの電源ON 作業開始 Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Apr 10 2007 - 18 10 08) Marvell version 1.12.1 - TINY DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M) Done NAND 256 MB Soc 88F5182 A2 CPU ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0 host mode USB 1 host mode PCI 0 PCI Express Root Complex Interface PCI 1 Conventional PCI, speed = 33000000 Net egiga0 [PRIME] Using 88E1118 phy hit any key to switch tftp boot. Hit any key to stop autoboot 0 system_bootend Hit any key to stop autoboot 3 ここでEnteryキーを押下してストップ 以下の5行を順番にコピペして貼り付け setenv bootargs_root root=/dev/mtdblock2 rw panic=5 setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) setenv bootcmd nboot $(default_kernel_addr) 0 $(nand_uImage_offset) ;setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver); bootm $(default_kernel_addr) setenv nand_boot yes boot 続き Marvell setenv bootargs_root root=/dev/mtdblock2 rw panic=5 Marvell setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) Marvell setenv bootcmd nboot $(default_kernel_addr) 0 $(nand_uImage_offset) ;setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver); bootm $(default_kernel_addr) Marvell setenv nand_boot yes Marvell boot Loading from device 0 NULL at 0xfa000000 (offset 0x20000) Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 stop_sound ## Booting image at 00100000 ... Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK Starting kernel ... arg console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.091 CONFIG_KUROBOX_PLATFORM CONFIG_KUROBOX_KUROBOX --- Uncompressing Linux................................................................................................................. done, booting the kernel. Linux version 2.6.12.6-arm1 (root@dev-hara) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #27 Tue Apr 10 22 47 16 JST 2007 CPU ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ) CPU0 D VIVT write-back cache CPU0 I cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets CPU0 D cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets Machine MV-88fxx81 Using UBoot passing parameters structure Sys Clk = 250000000, Tclk = 166664740 Memory policy ECC disabled, Data cache writeback Built 1 zonelists Kernel command line console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.091 PID hash table entries 1024 (order 10, 16384 bytes) Console colour dummy device 80x30 Dentry cache hash table entries 32768 (order 5, 131072 bytes) Inode-cache hash table entries 16384 (order 4, 65536 bytes) Memory 128MB 0MB 0MB 0MB = 128MB total Memory 126208KB available (3037K code, 426K data, 112K init) Mount-cache hash table entries 512 CPU Testing write buffer coherency ok NET Registered protocol family 16 serial_initialize_ttyS1 (Debug) ttyS1 is initialized. config_device_cs Error Unknown board CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 128MB SDRAM_CS1 ....disable SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base e0000000, size 128MB PEX0_IO ....base f2000000, size 1MB PCI0_MEM ....base e8000000, size 128MB PCI0_IO ....base f2100000, size 1MB INTER_REGS ....base f1000000, size 1MB DEVICE_CS0 ....base fa000000, size 2MB DEVICE_CS1 ....base f4000000, size 32MB DEVICE_CS2 ....base fa800000, size 1MB DEV_BOOCS ....base ff800000, size 8MB CRYPTO ENG ....no such Flash bankwidth 1, base ff800000, size 400000 KUROBOX FLASH size 4096[KB] Marvell Development Board (LSP Version 1.10.3.patch5_DB_NAS)-- KUROBOX_BOARD_KUROBOX Soc 88F5182 A2 Detected Tclk 166664740 and SysClk 250000000 Marvell USB EHCI Host controller #0 c04e4b00 Marvell USB EHCI Host controller #1 c04e4a40 pexBarOverlapDetect winNum 2 overlap current 0 mvPexInit Warning Bar 2 size is illigal it will be disabled please check Pex and CPU windows configuration PCI bus0 Fast back to back transfers enabled PCI bus1 Fast back to back transfers enabled SCSI subsystem initialized usbcore registered new driver usbfs usbcore registered new driver hub Use the XOR engines (offloading) for enhancing the following functions o RAID 5 Xor calculation o kernel memcpy o kenrel memzero o copy user to/from kernel buffers Number of XOR engines to use 2 cesadev_init(c00122e4) Fast Floating Point Emulator V0.9 (c) Peter Teichmann. inotify device minor=63 JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. SGI XFS with no debug enabled Serial 8250/16550 driver $Revision 1.90 $ 4 ports, IRQ sharing disabled ttyS0 at MMIO 0x0 (irq = 3) is a 16550A ttyS1 at MMIO 0x0 (irq = 4) is a 16550A io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized 3 RAM disks of 32768K size 1024 blocksize loop loaded (max 8 devices) Marvell Gigabit Ethernet Driver egiga o Ethernet descriptors in DRAM o DRAM SW cache-coherency o Checksum offload enabled o Loading network interface ** egiga_init_module (10) eth0 Intergrated Sata device found scsi0 Marvell SCSI to SATA adapter scsi1 Marvell SCSI to SATA adapter Vendor Hitachi Model HTS542525K9SA00 Rev BBFO Type Direct-Access ANSI SCSI revision 03 SCSI device sda 488397168 512-byte hdwr sectors (250059 MB) SCSI device sda drive cache write back SCSI device sda 488397168 512-byte hdwr sectors (250059 MB) SCSI device sda drive cache write back sda Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 physmap flash device 400000 at ff800000 Found SST 39LF020 phys_mapped_flash Found 1 x8 devices at 0x0 in 8-bit bank number of JEDEC chips 1 cfi_cmdset_0002 Disabling erase-suspend-program due to code brokenness. RedBoot partition parsing not available Debug nand_scan nand_flash_ids[i].pagesize is exist Debug nand_scan mtd- erasesize=0x00020000 Debug nand_scan mtd- oobblock=0x00000800 Debug nand_scan mtd- oobsize=0x00000040 NAND device Manufacturer ID 0x20, Chip ID 0xda (ST Micro NAND 256MiB 3,3V 8-bit) Scanning device for bad blocks Bad eraseblock 854 at 0x06ac0000 Using static partition definition Creating 3 MTD partitions on "nand_mtd" 0x00000000-0x00400000 "uImage" 0x00400000-0x04400000 "rootfs" 0x04400000-0x10000000 "extra" usbmon debugs is not available ehci_platform ehci_platform.4523 EHCI Host Controller ehci_platform ehci_platform.4523 new USB bus registered, assigned bus number 1 ehci_platform ehci_platform.4523 irq 17, io mem 0x00000000 ehci_platform ehci_platform.4523 park 0 ehci_platform ehci_platform.4523 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 1-0 1.0 USB hub found hub 1-0 1.0 1 port detected ehci_platform ehci_platform.16781 EHCI Host Controller ehci_platform ehci_platform.16781 new USB bus registered, assigned bus number 2 ehci_platform ehci_platform.16781 irq 12, io mem 0x00000000 ehci_platform ehci_platform.16781 park 0 ehci_platform ehci_platform.16781 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 2-0 1.0 USB hub found hub 2-0 1.0 1 port detected USB Universal Host Controller Interface driver v2.2 Initializing USB Mass Storage driver... usbcore registered new driver usb-storage USB Mass Storage support registered. usbcore registered new driver usbhid drivers/usb/input/hid-core.c v2.01 USB HID core driver mice PS/2 mouse device common for all mice md raid0 personality registered as nr 2 md raid1 personality registered as nr 3 md raid5 personality registered as nr 4 raid5 measuring checksumming speed arm4regs 304.000 MB/sec 8regs 215.200 MB/sec 32regs 249.200 MB/sec raid5 using function arm4regs (304.000 MB/sec) md md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 Buffalo Platform Linux Driver(Light) 0.01 installed. MICON ctrl (C) BUFFALO INC. V.1.00 installed. Kernel event proc (C) BUFFALO INC. V.1.00 installed. MICON V2 (C) BUFFALO INC. V.1.00 installed. NET Registered protocol family 2 IP routing cache hash table of 1024 buckets, 8Kbytes TCP established hash table entries 8192 (order 4, 65536 bytes) TCP bind hash table entries 8192 (order 3, 32768 bytes) TCP Hash tables configured (established 8192 bind 8192) NET Registered protocol family 1 NET Registered protocol family 17 md Autodetecting RAID arrays. md autorun ... md ... autorun DONE. Empty flash at 0x00df85f8 ends at 0x00df8800 VFS Mounted root (jffs2 filesystem). Freeing init memory 112K --- rcStart (NANDroot) --- ===== Starting MountSystemFolders ===== mounting procfs ... [Success] mounting sysfs ... [Success] mouting usbfs ... [Success] remouting rootfs ... [Success] mounting all devices ... [Success] ===== Starting checkroot.sh ===== rm /var/lock/perfmon is a directory rm /var/lock/printing is a directory rm /var/lock/subsys is a directory [Success] ===== Starting Kevent.sh ===== [Success] ===== Starting mount_share.sh ===== Mounting /dev/sda on /mnt/disk1 as a xfs file system. XFS bad magic number XFS SB validate failed mount Mounting /dev/sda on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/sda on /mnt/disk1 as a ext3 file system. mount Mounting /dev/sda on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/mtd3 on /mnt/mtd as a jffs2 file system. Success. [Success] ===== Starting sethostname.sh ===== hostname is setted to KUROBOX-PRO [Success] ===== Starting networking.sh ===== create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall dhcpcd no process killed route SIOC[ADD|DEL]RT No such process Configuration network interface lo eth0 requesting DHCP tout=30[s] eth0 link down eth0 link up 5 , full duplex 5 , speed 100 Mbps 5 /etc/dhcpc/dhcpcd.exe /etc/dhcpc/dhcpcd-eth0.info up dhcpcd.exe interface eth0 has been configured with old IP=192.168.3.50 hostname is setted to KUROBOX-PRO [Success] ===== Starting httpd.sh ===== [Success] ===== Starting telnet.sh ===== [Success] ===== Starting inetd.sh ===== [Success] ===== Starting smb.sh ===== $Starting SMB services $Starting NMB services [Success] ===== Starting clientUtil_servd.sh ===== Starting clientUtil_server starting on eth0 [Success] ===== Starting bootcomplete.sh ===== [Success] ===== Starting FanController.sh ===== [Success] ===== Starting boss.sh ===== ... .. -~~(~~ .~ shDBDhz+(-. .~+sDDBNBDhhszDBNNNNBNNNBDs - ~sBNNNNNNNNNNNNNNNNNNNNNNNNNBs -=DNNBNNNNNNNNNNNNNNNNNBNNNNNNNNBz .~zNNNNNNNNNNNNNNNNNNNNNNNNNNBNNNNNNNz~ ~hBNNNNBNNNNNNNNNNNNNNNNNNNNNNNNNNNNNND+ (hNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNBs- .~zNNNNNNNNNNNNNNNNNNNNNNNBNNNNNNBNNBNNNNNNBs ~sBNNNNNNNNNNNNNNNNNNNNNNNNNNNNBNNNNNNNNNNNNNz (+DNNNNNNNNNNNNNNNNNNNNNNDzNNNNNhzDNNBNNNNNNNNBs (sNNNNNNNNNNNNNNNNNNNNNNB=~hNNNN=~(sDNNNNNNNNNND (+DNNNNNNNNNNNNNNNNNNNNNNs .=NNNNz- (zDNNNNNNNNNz ~=BNNNNNNNNNNNNNNNNNNNNND- .=BNNNN . .(hNNNNNNNNB ~sNNNNNNNNNNNNNNNNNNNNND+. .+BNNNN+ ~sBNNNNNNN (zNNNNNNNNNNNNNNNNNNNNND ..+BNBNB=- .+BNNNNNNh (zNNNNNNNNNNNNNNNNNNNBB= . hNBBNs+- +DNNNBND (sNNNNNNNNNNNNNNNNNNNND( -DhDBN+ - . =NNNNNB ~+DNNBNNNNNNNNNNNNNNNNz =D=Dhh+( . ~DBNNNB ~(sNNNNNNNNNNNNNNNNNNNz. -hs(zz+ ( . .=NNNNN ~=NNBBBBNNNNNNNNNNNNB= ==-=+s((~. .~BNNNB ~=Nhs +++hNNNNNNNNBz - .~=-.s(+-(- hBNND =Ds+hz( ~hNNNNNNND+ ..-+ .-((( ~ ... -hNNNNDs ~+z(BN=. . BNNNNBhhDD=+ ~. ~-=shBBDhz+( -sBNNNBBNBz ~(=z(BD- ~~hBNNNs~-( zDDs+~(shzssszDBNDh= sBNNNNNNNBN ~~+s z=.-zh~sNNND . . zhhh==shDBNNNNNNNBDDNNNNNNNNNh ~~ ss+ .zBBs~zND+ ..-+zDBNNNNNNNNNNNhzNNNNNNNNND+ ~~(=h +DBz-sBs~ . (BBNNNNNNNNNz- BBNNBNNND= ~(~ zss(( (z sD+ ~DNNNNNNNNNz~ sNNNNNNDs ~(=Ds= ...-(h . . .. BNNNNNNNNz~ -hNNNBh ~(hNs(. =- .=BNNNNNBNs- .(hs== BNz~ . .(hBNNBDz .~ - -hNNh(. .. . (++~ . - . hBNB+ -+( . .- . zDNz( . ~+ - .. . .-. ..~(-. . . .~+(. .. -- . . . + ~ ~. ..... .- . ---(~~~( ~. .. . .((--- -~~(~ . . +s=(- -(+. Let s start a KURO-BOX! .... .(hBDzDD=. and have a fun time... .. .. . sDh+. . .. . ..-- . .. .. ... ....... . . .. .. - .. ... [Success] KUROUTOSHIKOU KUROBOX Series KUROBOX/PRO(KOSHO) KUROBOX-PRO login root, kuroadminでログイン sdaとして識別されている新しい2.5inchのHDDでパーティションを作成する BusyBox v1.1.1 (2007.04.06-12 02+0000) Built-in shell (ash) Enter help for a list of built-in commands. ~ # fdisk /dev/sda The number of cylinders for this disk is set to 30401. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help) n Command action e extended p primary partition (1-4) p Partition number (1-4) 1 First cylinder (1-30401, default 1) Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-30401, default 30401) Using default value 30401 Command (m for help) w The partition table has been altered! Calling ioctl() to re-read partition table. SCSI device sda 488397168 512-byte hdwr sectors (250059 MB) SCSI device sda drive cache write back sda sda1 SCSI device sda 488397168 512-byte hdwr sectors (250059 MB) SCSI device sda drive cache write back sda sda1 Syncing disks. 次にファイルシステムの作成 ~ # mkfs.ext2 /dev/sda1 mke2fs 1.27 (8-Mar-2002) Filesystem label= OS type Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 30539776 inodes, 61049000 blocks 3052450 blocks (5.00%) reserved for the super user First data block=0 1864 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group Superblock backups stored on blocks 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872 Writing inode tables done Writing superblocks and filesystem accounting information done This filesystem will be automatically checked every 35 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. 続いてマウントして必要なファイルを取得 ~ # mount -t ext2 /dev/sda1 /mnt/disk1 ~ # cd /mnt/disk1 /mnt/disk1 # wget http //ftp.jp.debian.org/debian/dists/wheezy/main/installer-ar mel/current/images/orion5x/network-console/buffalo/kuroboxpro/config-debian wget ftp.jp.debian.org Unknown host と思いきや Unknown Host、、、あれ?ネットワークつながっていない?名前解決できていないのかな? 他の参考サイトではnsswitch.confを書き換えていたので試してみる。 /mnt/disk1 # vi /etc/nsswitch.conf hosts files ↓dnsを追加 hosts files dns で再起動 /mnt/disk1 # reboot /mnt/disk1 # ----- rcDown ----- ===== Starting shutdown_start.sh ===== [Success] ===== Starting shutdown_proc.sh ===== ===== Starting clientUtil_servd.sh ===== Stop clientUtil_server [Success] ===== Starting smb.sh ===== $Shutting down SMB services killall Could not kill pid 658 No such process $Shutting down NMB services [Failed ] ===== Starting networking.sh ===== Deconfiguration network interface lo eth0 killall dhcpcd no process killed [Success] ===== Starting Kevent.sh ===== [Success] ===== Starting FanController.sh ===== Stopping a fan ........... [Success] [Success] ===== Starting umount_disk.sh ===== [Success] The system is going down NOW !! Sending SIGTERM to all processes. Sending SIPlease stand by while rebooting the system. md stopping all md devices. md md0 switched to read-only mode. Synchronizing SCSI cache for disk sda Restarting system. Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Apr 10 2007 - 18 10 08) Marvell version 1.12.1 - TINY DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M) Done NAND 256 MB Soc 88F5182 A2 CPU ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0 host mode USB 1 host mode PCI 0 PCI Express Root Complex Interface PCI 1 Conventional PCI, speed = 33000000 Net egiga0 [PRIME] Using 88E1118 phy hit any key to switch tftp boot. Hit any key to stop autoboot 0 system_bootend Hit any key to stop autoboot 3 またここでEnteryキーでストップ お決まりの5行を入力 Marvell setenv bootargs_root root=/dev/mtdblock2 rw panic=5 Marvell setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) Marvell setenv bootcmd nboot $(default_kernel_addr) 0 $(nand_uImage_offset) ;setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver); bootm $(default_kernel_addr) Marvell setenv nand_boot yes Marvell boot Loading from device 0 NULL at 0xfa000000 (offset 0x20000) Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 stop_sound ## Booting image at 00100000 ... Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK Starting kernel ... arg console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.091 CONFIG_KUROBOX_PLATFORM CONFIG_KUROBOX_KUROBOX --- Uncompressing Linux................................................................................................................. done, booting the kernel. Linux version 2.6.12.6-arm1 (root@dev-hara) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #27 Tue Apr 10 22 47 16 JST 2007 CPU ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ) CPU0 D VIVT write-back cache CPU0 I cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets CPU0 D cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets Machine MV-88fxx81 Using UBoot passing parameters structure Sys Clk = 250000000, Tclk = 166664740 Memory policy ECC disabled, Data cache writeback Built 1 zonelists Kernel command line console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.091 PID hash table entries 1024 (order 10, 16384 bytes) Console colour dummy device 80x30 Dentry cache hash table entries 32768 (order 5, 131072 bytes) Inode-cache hash table entries 16384 (order 4, 65536 bytes) Memory 128MB 0MB 0MB 0MB = 128MB total Memory 126208KB available (3037K code, 426K data, 112K init) Mount-cache hash table entries 512 CPU Testing write buffer coherency ok NET Registered protocol family 16 serial_initialize_ttyS1 (Debug) ttyS1 is initialized. config_device_cs Error Unknown board CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 128MB SDRAM_CS1 ....disable SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base e0000000, size 128MB PEX0_IO ....base f2000000, size 1MB PCI0_MEM ....base e8000000, size 128MB PCI0_IO ....base f2100000, size 1MB INTER_REGS ....base f1000000, size 1MB DEVICE_CS0 ....base fa000000, size 2MB DEVICE_CS1 ....base f4000000, size 32MB DEVICE_CS2 ....base fa800000, size 1MB DEV_BOOCS ....base ff800000, size 8MB CRYPTO ENG ....no such Flash bankwidth 1, base ff800000, size 400000 KUROBOX FLASH size 4096[KB] Marvell Development Board (LSP Version 1.10.3.patch5_DB_NAS)-- KUROBOX_BOARD_KUROBOX Soc 88F5182 A2 Detected Tclk 166664740 and SysClk 250000000 Marvell USB EHCI Host controller #0 c04e4b00 Marvell USB EHCI Host controller #1 c04e4a40 pexBarOverlapDetect winNum 2 overlap current 0 mvPexInit Warning Bar 2 size is illigal it will be disabled please check Pex and CPU windows configuration PCI bus0 Fast back to back transfers enabled PCI bus1 Fast back to back transfers enabled SCSI subsystem initialized usbcore registered new driver usbfs usbcore registered new driver hub Use the XOR engines (offloading) for enhancing the following functions o RAID 5 Xor calculation o kernel memcpy o kenrel memzero o copy user to/from kernel buffers Number of XOR engines to use 2 cesadev_init(c00122e4) Fast Floating Point Emulator V0.9 (c) Peter Teichmann. inotify device minor=63 JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. SGI XFS with no debug enabled Serial 8250/16550 driver $Revision 1.90 $ 4 ports, IRQ sharing disabled ttyS0 at MMIO 0x0 (irq = 3) is a 16550A ttyS1 at MMIO 0x0 (irq = 4) is a 16550A io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized 3 RAM disks of 32768K size 1024 blocksize loop loaded (max 8 devices) Marvell Gigabit Ethernet Driver egiga o Ethernet descriptors in DRAM o DRAM SW cache-coherency o Checksum offload enabled o Loading network interface ** egiga_init_module (10) eth0 Intergrated Sata device found scsi0 Marvell SCSI to SATA adapter scsi1 Marvell SCSI to SATA adapter Vendor Hitachi Model HTS542525K9SA00 Rev BBFO Type Direct-Access ANSI SCSI revision 03 SCSI device sda 488397168 512-byte hdwr sectors (250059 MB) SCSI device sda drive cache write back SCSI device sda 488397168 512-byte hdwr sectors (250059 MB) SCSI device sda drive cache write back sda sda1 Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 physmap flash device 400000 at ff800000 Found SST 39LF020 phys_mapped_flash Found 1 x8 devices at 0x0 in 8-bit bank number of JEDEC chips 1 cfi_cmdset_0002 Disabling erase-suspend-program due to code brokenness. RedBoot partition parsing not available Debug nand_scan nand_flash_ids[i].pagesize is exist Debug nand_scan mtd- erasesize=0x00020000 Debug nand_scan mtd- oobblock=0x00000800 Debug nand_scan mtd- oobsize=0x00000040 NAND device Manufacturer ID 0x20, Chip ID 0xda (ST Micro NAND 256MiB 3,3V 8-bit) Scanning device for bad blocks Bad eraseblock 854 at 0x06ac0000 Using static partition definition Creating 3 MTD partitions on "nand_mtd" 0x00000000-0x00400000 "uImage" 0x00400000-0x04400000 "rootfs" 0x04400000-0x10000000 "extra" usbmon debugs is not available ehci_platform ehci_platform.4523 EHCI Host Controller ehci_platform ehci_platform.4523 new USB bus registered, assigned bus number 1 ehci_platform ehci_platform.4523 irq 17, io mem 0x00000000 ehci_platform ehci_platform.4523 park 0 ehci_platform ehci_platform.4523 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 1-0 1.0 USB hub found hub 1-0 1.0 1 port detected ehci_platform ehci_platform.16781 EHCI Host Controller ehci_platform ehci_platform.16781 new USB bus registered, assigned bus number 2 ehci_platform ehci_platform.16781 irq 12, io mem 0x00000000 ehci_platform ehci_platform.16781 park 0 ehci_platform ehci_platform.16781 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 2-0 1.0 USB hub found hub 2-0 1.0 1 port detected USB Universal Host Controller Interface driver v2.2 Initializing USB Mass Storage driver... usbcore registered new driver usb-storage USB Mass Storage support registered. usbcore registered new driver usbhid drivers/usb/input/hid-core.c v2.01 USB HID core driver mice PS/2 mouse device common for all mice md raid0 personality registered as nr 2 md raid1 personality registered as nr 3 md raid5 personality registered as nr 4 raid5 measuring checksumming speed arm4regs 304.000 MB/sec 8regs 215.200 MB/sec 32regs 249.200 MB/sec raid5 using function arm4regs (304.000 MB/sec) md md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 Buffalo Platform Linux Driver(Light) 0.01 installed. MICON ctrl (C) BUFFALO INC. V.1.00 installed. Kernel event proc (C) BUFFALO INC. V.1.00 installed. MICON V2 (C) BUFFALO INC. V.1.00 installed. NET Registered protocol family 2 IP routing cache hash table of 1024 buckets, 8Kbytes TCP established hash table entries 8192 (order 4, 65536 bytes) TCP bind hash table entries 8192 (order 3, 32768 bytes) TCP Hash tables configured (established 8192 bind 8192) NET Registered protocol family 1 NET Registered protocol family 17 md Autodetecting RAID arrays. md autorun ... md ... autorun DONE. Empty flash at 0x00df85f8 ends at 0x00df8800 VFS Mounted root (jffs2 filesystem). Freeing init memory 112K --- rcStart (NANDroot) --- ===== Starting MountSystemFolders ===== mounting procfs ... [Success] mounting sysfs ... [Success] mouting usbfs ... [Success] remouting rootfs ... [Success] mounting all devices ... [Success] ===== Starting checkroot.sh ===== rm /var/lock/perfmon is a directory rm /var/lock/printing is a directory rm /var/lock/subsys is a directory [Success] ===== Starting Kevent.sh ===== [Success] ===== Starting mount_share.sh ===== Mounting /dev/sda1 on /mnt/disk1 as a xfs file system. XFS bad magic number XFS SB validate failed mount Mounting /dev/sda1 on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/sda1 on /mnt/disk1 as a ext3 file system. mount Mounting /dev/sda1 on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/mtd3 on /mnt/mtd as a jffs2 file system. Success. [Success] ===== Starting sethostname.sh ===== hostname is setted to KUROBOX-PRO [Success] ===== Starting networking.sh ===== create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall dhcpcd no process killed route SIOC[ADD|DEL]RT No such process Configuration network interface lo eth0 requesting DHCP tout=30[s] eth0 link down eth0 link up 5 , full duplex 5 , speed 100 Mbps 5 /etc/dhcpc/dhcpcd.exe /etc/dhcpc/dhcpcd-eth0.info up dhcpcd.exe interface eth0 has been configured with old IP=192.168.3.50 hostname is setted to KUROBOX-PRO [Success] ===== Starting httpd.sh ===== [Success] ===== Starting telnet.sh ===== [Success] ===== Starting inetd.sh ===== [Success] ===== Starting smb.sh ===== $Starting SMB services $Starting NMB services [Success] ===== Starting clientUtil_servd.sh ===== Starting clientUtil_server starting on eth0 [Success] ===== Starting bootcomplete.sh ===== [Success] ===== Starting FanController.sh ===== [Success] ===== Starting boss.sh ===== ... .. -~~(~~ .~ shDBDhz+(-. .~+sDDBNBDhhszDBNNNNBNNNBDs - ~sBNNNNNNNNNNNNNNNNNNNNNNNNNBs -=DNNBNNNNNNNNNNNNNNNNNBNNNNNNNNBz .~zNNNNNNNNNNNNNNNNNNNNNNNNNNBNNNNNNNz~ ~hBNNNNBNNNNNNNNNNNNNNNNNNNNNNNNNNNNNND+ (hNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNBs- .~zNNNNNNNNNNNNNNNNNNNNNNNBNNNNNNBNNBNNNNNNBs ~sBNNNNNNNNNNNNNNNNNNNNNNNNNNNNBNNNNNNNNNNNNNz (+DNNNNNNNNNNNNNNNNNNNNNNDzNNNNNhzDNNBNNNNNNNNBs (sNNNNNNNNNNNNNNNNNNNNNNB=~hNNNN=~(sDNNNNNNNNNND (+DNNNNNNNNNNNNNNNNNNNNNNs .=NNNNz- (zDNNNNNNNNNz ~=BNNNNNNNNNNNNNNNNNNNNND- .=BNNNN . .(hNNNNNNNNB ~sNNNNNNNNNNNNNNNNNNNNND+. .+BNNNN+ ~sBNNNNNNN (zNNNNNNNNNNNNNNNNNNNNND ..+BNBNB=- .+BNNNNNNh (zNNNNNNNNNNNNNNNNNNNBB= . hNBBNs+- +DNNNBND (sNNNNNNNNNNNNNNNNNNNND( -DhDBN+ - . =NNNNNB ~+DNNBNNNNNNNNNNNNNNNNz =D=Dhh+( . ~DBNNNB ~(sNNNNNNNNNNNNNNNNNNNz. -hs(zz+ ( . .=NNNNN ~=NNBBBBNNNNNNNNNNNNB= ==-=+s((~. .~BNNNB ~=Nhs +++hNNNNNNNNBz - .~=-.s(+-(- hBNND =Ds+hz( ~hNNNNNNND+ ..-+ .-((( ~ ... -hNNNNDs ~+z(BN=. . BNNNNBhhDD=+ ~. ~-=shBBDhz+( -sBNNNBBNBz ~(=z(BD- ~~hBNNNs~-( zDDs+~(shzssszDBNDh= sBNNNNNNNBN ~~+s z=.-zh~sNNND . . zhhh==shDBNNNNNNNBDDNNNNNNNNNh ~~ ss+ .zBBs~zND+ ..-+zDBNNNNNNNNNNNhzNNNNNNNNND+ ~~(=h +DBz-sBs~ . (BBNNNNNNNNNz- BBNNBNNND= ~(~ zss(( (z sD+ ~DNNNNNNNNNz~ sNNNNNNDs ~(=Ds= ...-(h . . .. BNNNNNNNNz~ -hNNNBh ~(hNs(. =- .=BNNNNNBNs- .(hs== BNz~ . .(hBNNBDz .~ - -hNNh(. .. . (++~ . - . hBNB+ -+( . .- . zDNz( . ~+ - .. . .-. ..~(-. . . .~+(. .. -- . . . + ~ ~. ..... .- . ---(~~~( ~. .. . .((--- -~~(~ . . +s=(- -(+. Let s start a KURO-BOX! .... .(hBDzDD=. and have a fun time... .. .. . sDh+. . .. . ..-- . .. .. ... ....... . . .. .. - .. ... [Success] KUROUTOSHIKOU KUROBOX Series KUROBOX/PRO(KOSHO) KUROBOX-PRO login root Password login[782] root login on `ttyS0 BusyBox v1.1.1 (2007.04.06-12 02+0000) Built-in shell (ash) Enter help for a list of built-in commands. ~ # mount -t ext2 /dev/sda1 /mnt/disk1 EXT2-fs warning mounting unchecked fs, running e2fsck is recommended ~ # cd /mnt/disk1 /mnt/disk1 # ls -l -rw-r--r-- 1 root root 0 Mar 10 13 00 config-debian drwx------ 2 root root 16384 Mar 10 13 00 lost+found 警告が出ているけど気にしない。 さっき失敗した必要なファイルのwgetを実行してみる。 /mnt/disk1 # wget http //ftp.jp.debian.org/debian/dists/wheezy/main/installer-armel/current/images/orion5x/network-console/buffalo/kuroboxpro/config-debian Connecting to ftp.jp.debian.org[203.178.137.175] 80 config-debian 100% |*****************************| 1535 00 00 ETA /mnt/disk1 # wget http //ftp.jp.debian.org/debian/dists/wheezy/main/installer-armel/current/images/orion5x/network-console/buffalo/kuroboxpro/initrd.buffalo Connecting to ftp.jp.debian.org[203.178.137.175] 80 initrd.buffalo 100% |*****************************| 5035 KB 00 00 ETA /mnt/disk1 # wget http //ftp.jp.debian.org/debian/dists/wheezy/main/installer-armel/current/images/orion5x/network-console/buffalo/kuroboxpro/uImage.buffalo Connecting to ftp.jp.debian.org[203.178.137.175] 80 uImage.buffalo 100% |*****************************| 1450 KB 00 00 ETA いけた では早速セットアップへ /mnt/disk1 # sh config-debian Saving U-Boot environment to ubootenv.bak... done. Changing U-Boot environment... nvram_set bootcmd = ide reset; ext2load ide 0 1 $(default_kernel_addr) /$(kernel); ext2load ide 0 1 $(default_initrd_addr) /$(initrd); setenv bootargs $(bootargs_base); bootm $(default_kernel_addr) $(default_initrd_addr) done. Please reboot your Kurobox Pro. nvram使って書き換えればシリアルコンソール要らないのか… では再起動 nvramで書き換えられたので今度はストップが要らないので気楽に待つ。 /mnt/disk1 # reboot /mnt/disk1 # ----- rcDown ----- ===== Starting shutdown_start.sh ===== [Success] ===== Starting shutdown_proc.sh ===== ===== Starting clientUtil_servd.sh ===== Stop clientUtil_server [Success] ===== Starting smb.sh ===== $Shutting down SMB services $Shutting down NMB services [Success] ===== Starting networking.sh ===== Deconfiguration network interface lo eth0 killall dhcpcd no process killed [Success] ===== Starting Kevent.sh ===== [Success] ===== Starting FanController.sh ===== Stopping a fan ........... [Success] [Success] ===== Starting umount_disk.sh ===== [Success] The system is going down NOW !! Sending SIGTERM to all processes. Sending SIPlease stand by while rebooting the system. md stopping all md devices. md md0 switched to read-only mode. Synchronizing SCSI cache for disk sda Restarting system. Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Apr 10 2007 - 18 10 08) Marvell version 1.12.1 - TINY DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M) Done NAND 256 MB Soc 88F5182 A2 CPU ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0 host mode USB 1 host mode PCI 0 PCI Express Root Complex Interface PCI 1 Conventional PCI, speed = 33000000 Net egiga0 [PRIME] Using 88E1118 phy hit any key to switch tftp boot. Hit any key to stop autoboot 2 1 0 system_bootend Hit any key to stop autoboot 3 2 1 0 Reset IDE Marvell Serial ATA Adapter Integrated Sata device found Device 0 OK Model Hitachi HTS542525K9SA00 Firm BBFOC31P Ser# 080422BB6F00WDDDBT6G Type Hard Disk Supports 48-bit addressing Capacity 238475.1 MB = 232.8 GB (488397168 x 512) Using device ide0, partition 1 Loading from block device ide device 0, partition 1 Name hda1 Type U-Boot File /uImage.buffalo 1485560 bytes read Using device ide0, partition 1 Loading from block device ide device 0, partition 1 Name hda1 Type U-Boot File /initrd.buffalo 5156040 bytes read stop_sound ## Booting image at 00100000 ... Image Name Debian kernel Created 2015-01-05 9 34 29 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1485496 Bytes = 1.4 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02000000 ... Image Name debian-installer ramdisk Created 2015-01-05 9 34 30 UTC Image Type ARM Linux RAMDisk Image (gzip compressed) Data Size 5155976 Bytes = 4.9 MB Load Address 02000000 Entry Point 02000000 Verifying Checksum ... OK Starting kernel ... arg console=ttyS0,115200 Uncompressing Linux... done, booting the kernel. [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.2.0-4-orion5x (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 Debian 3.2.65-1 [ 0.000000] CPU Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a0053177 [ 0.000000] CPU VIVT data cache, VIVT instruction cache [ 0.000000] Machine Buffalo/Revogear Kurobox Pro [ 0.000000] Clearing invalid memory bank 0KB@0xffffffff [ 0.000000] Clearing invalid memory bank 0KB@0xffffffff [ 0.000000] Clearing invalid memory bank 0KB@0xffffffff [ 0.000000] Ignoring unrecognised tag 0x00000000 [ 0.000000] Ignoring unrecognised tag 0x00000000 [ 0.000000] Ignoring unrecognised tag 0x00000000 [ 0.000000] Ignoring unrecognised tag 0x41000403 [ 0.000000] Memory policy ECC disabled, Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages 32512 [ 0.000000] Kernel command line console=ttyS0,115200 [ 0.000000] PID hash table entries 512 (order -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries 16384 (order 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries 8192 (order 3, 32768 bytes) [ 0.000000] Memory 128MB = 128MB total [ 0.000000] Memory 120408k/120408k available, 10664k reserved, 0K highmem [ 0.000000] Virtual kernel memory layout [ 0.000000] vector 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] vmalloc 0xc8800000 - 0xfd800000 ( 848 MB) [ 0.000000] lowmem 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] modules 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text 0xc0008000 - 0xc039c088 (3665 kB) [ 0.000000] .init 0xc039d000 - 0xc03c0000 ( 140 kB) [ 0.000000] .data 0xc03c0000 - 0xc03f9fc0 ( 232 kB) [ 0.000000] .bss 0xc03f9fe4 - 0xc045ca7c ( 395 kB) [ 0.000000] NR_IRQS 64 [ 0.000000] sched_clock 32 bits at 166MHz, resolution 5ns, wraps every 25769ms [ 0.000000] Console colour dummy device 80x30 [ 12.137424] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104) [ 12.207116] pid_max default 32768 minimum 301 [ 12.207429] Security Framework initialized [ 12.207612] Mount-cache hash table entries 512 [ 12.208337] Initializing cgroup subsys cpuacct [ 12.208386] Initializing cgroup subsys memory [ 12.208447] Initializing cgroup subsys devices [ 12.208479] Initializing cgroup subsys freezer [ 12.208509] Initializing cgroup subsys net_cls [ 12.208538] Initializing cgroup subsys blkio [ 12.208594] Initializing cgroup subsys perf_event [ 12.208780] CPU Testing write buffer coherency ok [ 12.211324] devtmpfs initialized [ 12.214771] print_constraints dummy [ 12.215226] NET Registered protocol family 16 [ 12.216750] Orion ID MV88F5182-A2. TCLK=166666667. [ 12.220449] Applying Orion-1/Orion-NAS PCIe config read transaction workaround [ 12.221209] PCI bus0 Fast back to back transfers disabled [ 12.227298] bio create slab bio-0 at 0 [ 12.228474] vgaarb loaded [ 12.230422] Switching to clocksource orion_clocksource [ 12.275838] NET Registered protocol family 2 [ 12.309253] IP route cache hash table entries 1024 (order 0, 4096 bytes) [ 12.311082] TCP established hash table entries 4096 (order 3, 32768 bytes) [ 12.311351] TCP bind hash table entries 4096 (order 2, 16384 bytes) [ 12.311497] TCP Hash tables configured (established 4096 bind 4096) [ 12.311529] TCP reno registered [ 12.311571] UDP hash table entries 256 (order 0, 4096 bytes) [ 12.311643] UDP-Lite hash table entries 256 (order 0, 4096 bytes) [ 12.312257] NET Registered protocol family 1 [ 12.312796] Unpacking initramfs... [ 13.580333] Freeing initrd memory 5032K [ 13.580367] NetWinder Floating Point Emulator V0.97 (double precision) [ 13.581885] audit initializing netlink socket (disabled) [ 13.581971] type=2000 audit(1.440 1) initialized [ 13.585681] VFS Disk quotas dquot_6.5.2 [ 13.585931] Dquot-cache hash table entries 1024 (order 0, 4096 bytes) [ 13.586223] msgmni has been set to 245 [ 13.587723] alg No test for stdrng (krng) [ 13.588000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 13.588042] io scheduler noop registered [ 13.588070] io scheduler deadline registered [ 13.588224] io scheduler cfq registered (default) [ 13.588469] mv_xor_shared mv_xor_shared.0 Marvell shared XOR driver [ 13.620611] mv_xor mv_xor.0 Marvell XOR ( xor cpy ) [ 13.660607] mv_xor mv_xor.1 Marvell XOR ( xor fill cpy ) [ 13.661638] Serial 8250/16550 driver, 2 ports, IRQ sharing disabled [ 13.683265] serial8250.0 ttyS0 at MMIO 0xf1012000 (irq = 3) is a 16550A [ 14.110384] console [ttyS0] enabled [ 14.134756] serial8250.1 ttyS1 at MMIO 0xf1012100 (irq = 4) is a 16550A [ 14.143600] physmap platform flash device 00040000 at f4000000 [ 14.149754] Found SST 39LF020 [ 14.152909] physmap-flash.0 Found 1 x8 devices at 0x0 in 8-bit bank [ 14.159280] number of JEDEC chips 1 [ 14.193019] NAND device Manufacturer ID 0x20, Chip ID 0xda (ST Micro NAND 256MiB 3,3V 8-bit) [ 14.201822] Scanning device for bad blocks [ 14.238566] Bad eraseblock 854 at 0x000006ac0000 [ 14.300751] Creating 3 MTD partitions on "orion_nand" [ 14.305909] 0x000000000000-0x000000400000 "uImage" [ 14.313476] 0x000000400000-0x000004400000 "rootfs" [ 14.321188] 0x000004400000-0x000010000000 "extra" [ 14.330054] mousedev PS/2 mouse device common for all mice [ 14.336587] i2c /dev entries driver [ 14.344783] rtc-rs5c372 0-0032 rs5c372a found, 24hr, driver version 0.6 [ 14.356860] rtc-rs5c372 0-0032 rtc core registered rtc-rs5c372 as rtc0 [ 14.366220] TCP cubic registered [ 14.369459] NET Registered protocol family 17 [ 14.374013] Registering the dns_resolver key type [ 14.378787] VFP support v0.3 not present [ 14.384110] registered taskstats version 1 [ 14.390002] rtc-rs5c372 0-0032 setting system clock to 2015-03-10 13 08 56 UTC (1425992936) [ 14.398628] Initializing network drop monitor service [ 14.405299] Freeing init memory 140K [ 14.826405] mv643xx_eth MV-643xx 10/100/1000 ethernet driver version 1.4 [ 14.936417] mv643xx_eth smi probed [ 15.061986] mv643xx_eth_port mv643xx_eth_port.0 eth0 port 0 with MAC address XX XX XX XX XX XX [ 15.214283] usbcore registered new interface driver usbfs [ 15.219976] usbcore registered new interface driver hub [ 15.277235] SCSI subsystem initialized [ 15.283887] usbcore registered new device driver usb [ 15.292303] ehci_hcd USB 2.0 Enhanced Host Controller (EHCI) Driver [ 15.298959] orion-ehci orion-ehci.0 Marvell Orion EHCI [ 15.385903] orion-ehci orion-ehci.0 new USB bus registered, assigned bus number 1 [ 15.480681] orion-ehci orion-ehci.0 irq 17, io mem 0xf1050000 [ 15.501970] orion-ehci orion-ehci.0 USB 2.0 started, EHCI 1.00 [ 15.508052] usb usb1 New USB device found, idVendor=1d6b, idProduct=0002 [ 15.514915] usb usb1 New USB device strings Mfr=3, Product=2, SerialNumber=1 [ 15.522165] usb usb1 Product Marvell Orion EHCI [ 15.526876] usb usb1 Manufacturer Linux 3.2.0-4-orion5x ehci_hcd [ 15.533085] usb usb1 SerialNumber orion-ehci.0 [ 15.665815] hub 1-0 1.0 USB hub found [ 15.669602] hub 1-0 1.0 1 port detected [ 15.702305] sata_mv sata_mv.0 slots 32 ports 2 [ 15.741857] scsi0 sata_mv [ 15.764300] scsi1 sata_mv [ 15.767884] ata1 SATA max UDMA/133 irq 29 [ 15.772067] ata2 SATA max UDMA/133 irq 29 [ 15.800881] orion-ehci orion-ehci.1 Marvell Orion EHCI [ 15.806200] orion-ehci orion-ehci.1 new USB bus registered, assigned bus number 2 [ 15.860686] orion-ehci orion-ehci.1 irq 12, io mem 0xf10a0000 [ 15.880672] orion-ehci orion-ehci.1 USB 2.0 started, EHCI 1.00 [ 15.886761] usb usb2 New USB device found, idVendor=1d6b, idProduct=0002 [ 15.893624] usb usb2 New USB device strings Mfr=3, Product=2, SerialNumber=1 [ 15.900882] usb usb2 Product Marvell Orion EHCI [ 15.905592] usb usb2 Manufacturer Linux 3.2.0-4-orion5x ehci_hcd [ 15.911801] usb usb2 SerialNumber orion-ehci.1 [ 15.988111] hub 2-0 1.0 USB hub found [ 16.000727] hub 2-0 1.0 1 port detected [ 16.280569] ata1 SATA link up 1.5 Gbps (SStatus 113 SControl 300) [ 16.320626] ata1.00 ATA-8 Hitachi HTS542525K9SA00, BBFOC31P, max UDMA/133 [ 16.327593] ata1.00 488397168 sectors, multi 0 LBA48 NCQ (depth 31/32) [ 16.390642] ata1.00 configured for UDMA/133 [ 16.395692] scsi 0 0 0 0 Direct-Access ATA Hitachi HTS54252 BBFO PQ 0 ANSI 5 [ 16.750560] ata2 SATA link down (SStatus 0 SControl 300) [ 16.875256] sd 0 0 0 0 [sda] 488397168 512-byte logical blocks (250 GB/232 GiB) [ 16.886139] sd 0 0 0 0 [sda] Write Protect is off [ 16.891416] sd 0 0 0 0 [sda] Write cache enabled, read cache enabled, doesn t support DPO or FUA [ 17.271393] sda sda1 [ 17.277923] sd 0 0 0 0 [sda] Attached SCSI disk Starting system log daemon syslogd, klogd. mount mounting /dev/mtdblock2 on /tmp/oldsys-preseed/rootfs failed Input/output error umount can t umount /tmp/oldsys-preseed/rootfs Invalid argument 無事にセットアップが始まりました。 続きはDebian Wheezy Install
https://w.atwiki.jp/hanieko/pages/21.html
Debian Linuxのディストリビューションのひとつ Debian系について
https://w.atwiki.jp/kazushige/pages/11.html
基本 aptitude update aptitude upgrade モジュールの更新 aptitude search モジュール名 aptitude install モジュール名 aptitude remove モジュール名 インストール済みのパッケージを確認するのはdpkg -l sudo aptitude install sudo visudoで最下行に 「hogehogeALL=(ALL) ALL」 というようにsudo実行を許可するユーザを作成する。 ※時刻調整後にsudoを行おうとして、 「sudo timestamp too far in the future」 というエラーが出てくるようになったら、 touch /var/run/sudo/* をおこって、/var/run/sudo配下にあるsudoユーザのディレクトリの タイムスタンプをアップデートしてやればよい。 debconfのやり直し dpkg-reconfigure パッケージ 細かい設定を行いたい場合は dpkg-reconfigure -plow パッケージ 参考:http //ukai.jp/debuan/2001w/debconf.txt ssh導入~webmin ssh導入 sudo aptitude update sudo aptitude install ssh ssh -l ログインユーザ名 IPアドレス wget http //prdownloads.sourceforge.net/webadmin/webmin_1.360_all.deb dpkg -i webmin_1.360_all.deb NTP sudo aptitude install ntp ntpdate ntp-doc ntp-simple NTPサーバにアクセスできず手動で時計合わせをする場合は sudo date MMDDhhmmss のように指定。 参考:http //kinsan.main.jp/wiki/wiki.cgi?page=Linux%A4%C7%BB%FE%B7%D7%A4%CE%B9%E7%A4%EF%A4%BB%CA%FD apache sudo aptitude install apache samba sudo aptitude install samba sudo aptitude install swat ※swatインストール時に自動的に/etc/inetd.confが修正され、リスタートされる。 共有ディレクトリを作成しておく。(chmod 755) passwordのタブで、sambaで使うユーザ追加(smbpasswdと同じ) sharesのタブで、共有ディレクトリのパスを記述 path=/home/family/work read only=no 参考:http //linux.webseason.net/samba/ apache2 PHP5 sudo aptitude install apache2 ※apache1を過去にインストールしていたりすると、インストール後自動的にapache2が起動しない(?) 原因は、/etc/default/apache2 の中が NO_START=1 になっているから。 このままでは起動できないので、0に書きかえて、 /etc/init.d/apache2 start (/etc/init.d/apache2 restart でも良し) webページを表示すると、「it works」と表示。 まずは、/etc/apache2/apache2.conf を編集 LanguagePriorityをja(日本語)を最優先に変更。 cd /etc/apache2/sites-available/ cp -p default hoge (defaultは編集せずに、cpしたhogeを編集し、最終的にa2ensiteコマンドで有効化) sudo vi hoge AllowOverride None → AllowOverride All (.htaccessファイルによるディレクトリごとのアクセス制御を可能にする) RedirectMatch ^/$ /apache2-default/ → #RedirectMatch ^/$ /apache2-default/ ServerSignature On → ServerSignature Off (セキュリティ上) a2dissite default a2ensite hoge /etc/init.d/apache2 restart webページを表示すると、ディレクトリツリー表示 ※過去にapache1をインストールしていると、debianでのapacheのデフォルトページが表示。 sudo aptitude install libapache2-mod-php5 php5-gd php5-mcrypt PHPのインストール状況を確認するには、コンテンツに「 ? phpinfo() ? 」と書いた phpinfo.phpというテキストファイルを作成して、/var/wwwに保存してください。 ブラウザで「phpinfo.php」にアクセスすることで、PHPのインストール状況を確認することができます。 参考: http //takafam.com/pclog/2007/02/debianapache2.html http //golgotha.xrea.jp/archives/2005/12/debian_sarge_ap.html mysql sudo aptitude install mysql-server-5.0 php5-mysql phpmyadmin sudo vi /etc/php5/apache2/php.ini extension=mysql.so extension=gd.so の行頭のコメントアウト(;)を削除 mysql.trace_mode = OffをOnに変更 (※↑これはIEでxoopsのインストールをしようとした場合に 途中で止まってしまうことへの対処と考えられる。Mac(safari)では不要だった。) sudo cp /etc/phpmyadmin/config.inc.php /etc/phpmyadmin/config.inc.php.default sudo vi /etc/phpmyadmin/config.inc.php mysqladmin -u root password "yourpassword" でパスワード設定 http //-----/phpmyadmin で先ほど設定したパスワードでrootでログイン adduser xoopsであらかじめxoopsユーザを作っておく。 データベース新規作成:xoops_db ※注意:データベース作成の際には照合順序(文字コードのこと)を「ujis_japanese_ci」に変更するのを忘れない。 mysql5.0のデフォルトはUTF-8だが、xoopsはeucなので一部表示が文字化けしてしまう。 ユーザ追加:xoops_user グローバル特権は与えず、xoops_dbへのアクセス権限のみ付与 xoopsのhtmlフォルダの中身のファイルをアップロード(sftp、xoopsユーザで) chmod 777 uploads cache templates_c chmod 666 mainfile.php あとは http //-----/xoops でインストールウィザードに従って設定を行う。 http //support.sakura.ad.jp/support/manual/rs/xoop_man.shtml http //ma2mura.blog3.fc2.com/blog-entry-116.html /etc/init.d/mysql restart HDDの増設 (1)「dmesg」コマンドを実行して,増設したHDDのモデル名があることを確認 dmesg | grep hdc (増設したHDDがブートプロセスで認識されているかどうか確認。メーカ名が出ていればOK) (2)fdiskコマンドでLinuxファイルシステム(ext2)を作成する fdisk /dev/hdc pコマンドで現在のパーティション(無し)を確認 nコマンドで新パーティション作成(primaryでNo.1) pコマンドで作成したパーティション(1つ)を確認 wコマンドで書き込み終了 (3)パーティションをフォーマットする mkfs -t ext3 /dev/hdc1 (4)マウントするディレクトリを作成する mkdir /mnt/hdc mount /dev/hdc1 /mnt/hdc ls /mnt/hdc (5)再起動後も自動マウントできるようにする /dev/hdc1 /mnt/hdc ext3 defaults 1 3 最後の2つの数字は、 (1つ目) バックアップコマンド(dump)の対象とするか (2つ目) fsckによるファイルシステムチェックの順番(既に1,2が使われていたので3になった。) (6)一旦umountし、再起動後に自動マウントできているかを確認 mount (←現在のマウントポイント確認のため) umount /mnt/hdc mount (←現在のマウントポイント確認のため) shutdown -r now 参考:http //www.itmedia.co.jp/help/tips/linux/l0112.html http //www.thinkit.co.jp/free/compare/5/5/
https://w.atwiki.jp/atwikimyj/pages/90.html
mod_perl2を使う上でカレントディレクトリを変更できない という場合がある。これは設定を変更することで 回避できる(普通のCGIと同じように使えるが、その分プロセス をたくさん使用するのでメモリを余計使う)。 それにはperlのインストール時に"ithread"という機能が有効 になっていなければならない。 Perlインストール時にデフォルトでインストールすると ithreadという機能が無効になった状態でインストール される。 その状態で、httpd.confに PerlOptions +Parentを付与しても下記のようなエラーがでる。 # apachectl graceful Syntax error on line 15 of /var/www/vhosts/flier.net/conf/vhost.conf PerlOption `Parent requires an ithreads enabled Perl そもそもithreadとは何ぞや Perlのithreads http //www.donzoko.net/doc/memo/perlithreads.html#basic すばらしい解説ページ。 ここの「基本編」内のperlドキュメント日本語訳によると、 現在起動しているperlでithreadが有効になっているかどうかは perl -V にてperlのコンフィグを確認し、 useithreads=undef なら無効 useithreads=define なら有効 とある。早速確認すると、undefだった。有効にするには、 perlをインストールする際のConfigureにてオプションを 追加することでithreadを有効にすることが可能になる。 freeBSDならば簡単にexportなど(よくわからんが)を使えば ithreadだけちょちょっと有効にできるみたい。 しかし今使っている環境はCentOSなのだ、、。 ということでperlの再インストールが必要となる。 [1]perlのstable版をダウンロード、サーバにアップ [2]解凍、解凍したフォルダに移動 [3]Configureで設定を行う # ./Configure -Dprefix=/usr/local -Dusethreads -de -U d_setlocate の後に #make そして #make test 最後に #make install make testの途中で以下のようなsyslogのエラーが出るが ext/Sys/Syslog/t/syslog...................# Failed test syslog() should return true 0 # in ../ext/Sys/Syslog/t/syslog.t at line 109. 弾小飼御大のblogを確認すると http //blog.livedoor.jp/dankogai/archives/50494105.html このエラーは特に問題ないみたい。 再度Perl -Vを実行して、有効になっていれば ithread有効化は完了。
https://w.atwiki.jp/atwikimyj/pages/37.html
ぬおおお、、なんでぇ、、ライブラリを、、読んでくれないんだよぉ! なんで、このパスを、、読んでくれないんだよぉ! だから、、SetEnvしてんじゃんかぁ!PERL5LIBだろぉ? と叫び続けたあの日。 この記事は、perlのライブラリのパスと戦う人への応援歌です (応援歌であって、必ずしもあなたの抱える問題の解決を保障しません) perlを使うと一言で言っても、どのような状況で起動するか によって、読みに行くライブラリが変わる、つまり@INCの 中身が変わる。 1 シェル(bash)からperlを起動させた場合 2 mod_perl2から起動させた場合(Apache起動時) 3 CGIからperlを起動させる場合(ブラウザからアクセス) もしかしたらもっとパターンはあるかもしれないが。 以下場合分けで対処をする。 1 シェル(bash)からperlを起動させる場合 コマンドラインからの入力でperlを実行する場合。 /etc/profile を編集し、以下を記述する。 PERL_PATH=/usr/local export PERL5LIB=${PERL_PATH}/lib export PATH=${PERL_PATH}/bin $PATH これで、コマンドラインからの # perl -le print for @INC などの動作には反映される 2 mod_perl2から起動させた場合(Apache起動時) Apacheがperlを起動させる場合、 たとえば、httpd.conf内でCatalyst関連の ライブラリを読ませるときはperlを起動して いるのだが、なぜか前のバージョンのperl で使っていたと思われるライブラリパスを 読みにいっちゃう。 解決策は、 httpconf内にライブラリのパスを記述すること。 普通考えると SetEnv PERL_PATH "/usr/local" SetEnv PERL5LIB "/usr/local/lib" と書けば環境変数が変わる、、と思うのだが これじゃだめ(涙) 試行錯誤の末、perlのライブラリがあるディレクトリすべてを PerlSwitches -I/usr/local/lib/perl5/5.8.8 PerlSwitches -I/usr/local/lib/perl5/5.8.8/i686-linux PerlSwitches -I/usr/local/lib/perl5/site_perl/5.8.8 と記述すると、Apacheからのperl起動時に@INCに入れてくれる ようだ。うーん。これってバッドノウハウ? 3 CGIからperlを起動させる場合(ブラウザからアクセス) 具体的にはWEBサイトを開いたときにperlが起動する場合。 これは略
https://w.atwiki.jp/anthony/pages/37.html
Debian Wheezyのインストール Debian Wheezy Setupの続きです。 今回Wheezy版のDebianは誰かがminirootのようなものを作ってくれているわけではないので、DebianのInstallerを使ってセットアップします。 私が良く参考にするhttp //buffalo.nas-central.org/にも同じようなことが書いてあったので最近はこれが主流なんでしょうか。 Continue Installation remotely SSH lqqqqqqqqqqqu [!!] Continue installation remotely using SSH tqqqqqqqqqqqk x x x Start SSH x x To continue the installation, please use an SSH client to connect to x x the IP address 192.168.3.50 and log in as the "installer" user. For x x example x x x x ssh installer@192.168.3.50 x x x x The fingerprint of this SSH server s host key is x x 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 x x x x Please check this carefully against the fingerprint reported by your x x SSH client. x x x x Continue x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj この画面が表示されると ssh installer@192.168.3.50 のように接続先情報が表示されるので、これに合わせてSSHで接続する。 user、passは以下のとおり。※keyは書き換えてあります。 user installer pass install Choose a mirror of the Debian archive lqqqqqqqqqqqqqqu [!] Choose a mirror of the Debian archive tqqqqqqqqqqqqqqk x x x The goal is to find a mirror of the Debian archive that is close to x x you on the network -- be aware that nearby countries, or even your x x own, may not be the best choice. x x x x Debian archive mirror country x x x x Spain x x Sweden a x x Switzerland a x x Taiwan a x x Thailand a x x Turkey a x x Ukraine x x United Kingdom a x x United States x x x x Go Back x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Japanを選択 lqqqqqqqqqqqqqqu [!] Choose a mirror of the Debian archive tqqqqqqqqqqqqqqk x x x Please select a Debian archive mirror. You should use a mirror in x x your country or region if you do not know which mirror has the best x x Internet connection to you. x x x x Usually, ftp. your country code .debian.org is a good choice. x x x x Debian archive mirror x x x x ftp.jp.debian.org x x ftp.nara.wide.ad.jp x x dennou-k.gfd-dennou.org a x x dennou-q.gfd-dennou.org a x x dennou-h.gfd-dennou.org a x x cdn.debian.net a x x ftp.dti.ad.jp x x x x Go Back x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj ftp.jp.debian.orgを選択 lqqqqqqqqqqqqu [!] Choose a mirror of the Debian archive tqqqqqqqqqqqqk x x x If you need to use a HTTP proxy to access the outside world, enter x x the proxy information here. Otherwise, leave this blank. x x x x The proxy information should be given in the standard form of x x "http //[[user][ pass]@]host[ port]/". x x x x HTTP proxy information (blank for none) x x x x ___________________________________________________________________ x x x x Go Back Continue x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj プロキシーは不要な環境なのでブランクのまま Continue Select a language lqqqqqqqqqqqqqqqqqqqqqqqu [!!] Select a language tqqqqqqqqqqqqqqqqqqqqqqqqk x x x Choose the language to be used for the installation process. The x x selected language will also be the default language for the installed x x system. x x x x Language x x x x Catalan - Catala x x Chinese (Simplified) - 中文(簡体) a x x Chinese (Traditional) - 中文(繁体) x x Croatian - Hrvatski a x x Czech - ?e?tina a x x Danish - Dansk a x x Dutch - Nederlands a x x Dzongkha - ??????? a x x English - English x x x x Go Back x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Japaneseを選択 場所の選択 言語を日本語にしたのでここから急に日本語表示になる。 lqqqqqqqqqqqqqqqqqqqqqqqqqqqu [!] 場所の選択 tqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x x x ここで選択された場所は、時間帯の設定のほか、システムロケールの選択の x x 支援などに使われます。通常これはあなたの居住する国であるはずです。 x x x x アジア についての場所を一覧表示しています。一覧にあなたの場所がないと x x きには、別の大陸または地域を選ぶために 戻る を選択してください。 x x x x 国・領土・地域 x x x x 香港 x x 台湾 a x x 大韓民国 (韓国) a x x 中国 a x x 朝鮮民主主義人民共和国 a x x 東ティモール a x x 日本 x x x x 戻る x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj 日本を選択 ユーザとパスワードのセットアップ lqqqqqqqqqqqqqqqqu [!!] ユーザとパスワードのセットアップ tqqqqqqqqqqqqqqqqk x x x root (システム管理者アカウント) のパスワードをここで設定する必要が x x あります。悪意のある、あるいは資格のないユーザが root 権限を得てしま x x うことは大損害につながるので、root のパスワードは簡単に推測できるもの x x にならないよう注意を払うべきです。辞書に載っている単語や、あなたのミ x x ドルネームのようにあなたに関連する語であってはなりません。 x x x x 良いパスワードは、アルファベット・数字・記号で構成されます。また、定 x x 期的にパスワードは変更されるべきです。 x x x x root ユーザのパスワードを空にすべきではありません。空のままにすると、 x x root アカウントは無効にされ、システムの初期ユーザアカウントに "sudo" x x コマンドを使って root になる権限が与えられます。 x x x x x x _____________________________________________________________________ x x x x 戻る 続ける x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj パスワードを設定 lqqqqqqqqqqqqqqu [!!] ユーザとパスワードのセットアップ tqqqqqqqqqqqqqqqk x x x 確認のために、先ほど入力した同じ root のパスワードを再度入力してくだ x x さい。 x x x x 確認のため、再度パスワードを入力してください x x x x ____________________________________________________________________ x x x x 戻る 続ける x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj パスワードを再入力 lqqqqqqqqqqqqqqqu [!!] ユーザとパスワードのセットアップ tqqqqqqqqqqqqqqqk x x x ユーザアカウントは非管理者権限で、root アカウントの代わりとして使うた x x めに作成されます。 x x x x このユーザの本名を入力してください。この情報は、ユーザの本名を表示あ x x るいは利用するプログラムのほか、このユーザから送られるメールのデフォ x x ルトの発信元といった形で使われます。あなたのフルネームを入力するのが x x 妥当な選択でしょう。 x x x x 新しいユーザの本名 (フルネーム) x x x x _____________________________________________________________________ x x x x 戻る 続ける x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj 設定する意味が分からないのでブランクのまま Continue lqqqqqqqqqqqqqqu [!!] ユーザとパスワードのセットアップ tqqqqqqqqqqqqqqqk x x x 新しいアカウントのユーザ名を選んでください。あなたのファーストネーム x x を使うのは妥当な選択です。ユーザ名の先頭は小文字アルファベットでなけ x x ればならず、数字・小文字アルファベットの任意の組合わせで構成されます x x 。 x x x x あなたのアカウントのユーザ名 x x x x ____________________________________________________________________ x x x x 戻る 続ける x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj NANDブート時と同じように構成したいのでkurobox lqqqqqqqqqqqqqqu [!!] ユーザとパスワードのセットアップ tqqqqqqqqqqqqqqqk x x x 良いパスワードは、アルファベット・数字・記号で構成されます。また、定 x x 期的にパスワードは変更されるべきです。 x x x x 新しいユーザのパスワードを選んでください x x x x ____________________________________________________________________ x x x x 戻る 続ける x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj kurobox lqqqqqqqqqqqqqqu [!!] ユーザとパスワードのセットアップ tqqqqqqqqqqqqqqqk x x x 確認のため、先ほど入力したのと同じユーザパスワードを再度正確に入力し x x てください。 x x x x 確認のため、再度パスワードを入力してください x x x x ____________________________________________________________________ x x x x 戻る 続ける x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj パスワードの再入力 ディスクのパーティショニング lqqqqqqqqqqqqqqqqqqu [!!] ディスクのパーティショニング tqqqqqqqqqqqqqqqqqqk x x x 選択したディスク内のすべてのデータは失われます。ただし、変更を本当に x x 行うことを確認するまでは、実際にはこの処理は行われません。 x x x x パーティショニングするディスクの選択 x x x x SCSI1 (0,0,0) (sda) - 250.1 GB ATA Hitachi HTS54252 x x x x 戻る x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj 250Gの2.5inch HDDを繋いであるのが分かります。 lqqqqqqqqqqqqqqqqqqu [!] ディスクのパーティショニング tqqqqqqqqqqqqqqqqqqqk x x x 選択されたパーティショニング x x x x SCSI1 (0,0,0) (sda) - ATA Hitachi HTS54252 250.1 GB x x x x ディスクは、いくつかの異なる機構のうちの 1 つでパーティショニングされ x x ます。よくわからなければ、最初の選択肢を選んでください。 x x x x パーティショニング機構 x x x x すべてのファイルを 1 つのパーティションに (初心者ユーザには推奨) x x /home パーティションの分割 x x /home, /usr, /var, /tmp パーティションを分割 x x x x 戻る x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj あまり細かく分かれていると空き領域を効率よく使えないので、すべてのファイルを 1 つのパーティションにを選択 lqqqqqqqqqqqqqqqqqqu [!!] ディスクのパーティショニング tqqqqqqqqqqqqqqqqqqk x x x これはあなたの現在の設定済みパーティションとマウントポイントの概要で x x す。その設定 (ファイルシステム、マウントポイントなど) を変更したいパ x x ーティション、新しいパーティションを追加するための空き領域、あるいは x x パーティションテーブルを初期化したいデバイスのいずれかを選択してくだ x x さい。 x x x x 論理ボリュームマネージャの設定 x x a x x SCSI1 (0,0,0) (sda) - 250.1 GB ATA Hitachi HTS54252 a x x 1. 基本 254.8 MB B f ext2 /boot a x x 2. 基本 249.4 GB f ext4 / a x x 5. 論理 374.3 MB f スワップ スワップ a x x a x x パーティションへの変更を元に戻す x x パーティショニングの終了とディスクへの変更の書き込み x x x x 戻る x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj カスタマイズはできないみたい。特に気にせずパーティショニングの終了とディスクへの変更の書き込みを選択 lqqqqqqqqqqqqqqqqu [!!] ディスクのパーティショニング tqqqqqqqqqqqqqqqqqk x x x 続けると、以下に挙げた変更はディスクに書き込まれます。あるいは、手動 x x でさらに変更を加えることができます。 x x x x *警告* これは、パーティションを初期化するのと同様に、削除するとした x x パーティションのすべてのデータを破壊します。 x x x x 以下のデバイスのパーティションテーブルが変更されます x x SCSI1 (0,0,0) (sda) x x x x 以下のパーティションは初期化されます x x SCSI1 (0,0,0) (sda) のパーティション 1 を ext2 に x x SCSI1 (0,0,0) (sda) のパーティション 2 を ext4 に x x SCSI1 (0,0,0) (sda) のパーティション 5 を スワップ に x x x x ディスクに変更を書き込みますか? x x x x はい いいえ x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj はい popularity-contest lqqqqqqqqqqqqqqu [!] popularity-contest を設定しています tqqqqqqqqqqqqqqk x x x このシステムであなたが最も利用したパッケージについての統計をディスト x x リビューション開発者に匿名で提供するようシステムを設定できます。この x x 情報は私たちが 1 番目の配布 CD に入れるべきパッケージであるかどうかな x x どを決定する際に役立ちます。 x x x x 参加することを選ぶと、自動提出スクリプトが毎週 1 回自動的に実行され、 x x ディストリビューション開発者に統計が送られます。収集された統計は、 x x http //popcon.debian.org/ で見ることができます。 x x x x この決定は、あとでいつでも "dpkg-reconfigure popularity-contest" を実 x x 行して変更できます。 x x x x Debian パッケージ利用調査に参加しますか? x x x x 戻る はい いいえ x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj ソフトウェアの選択 lqqqqqqqqqqqqqqqqqqqqqqqu [!] ソフトウェアの選択 tqqqqqqqqqqqqqqqqqqqqqqqqk x x x 現時点では、システムのコアのみがインストールされている状態です。あな x x たのニーズに合うようにシステムを調整するために、以下の定義済みソフト x x ウェアコレクションから 1 つ以上をインストールできます。 x x x x インストールするソフトウェアの選択 x x [ ] Debian デスクトップ環境 x x [ ] Web サーバ x x [ ] プリンタサーバ a x x [ ] SQL データベース a x x [ ] DNS サーバ a x x [ ] ファイルサーバ a x x [ ] メールサーバ a x x [*] SSH サーバ a x x [ ] ノート PC x x x x 戻る 続ける x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj まずは最小構成で進めようと思います。のでそのまま 続ける インストールの完了 lqqqqqqqqqqqqqqqqqqqqqu [!!] インストールの完了 tqqqqqqqqqqqqqqqqqqqqqqk x x x インストール完了 x x インストールは完了し、新しいシステムを起動する時となりました。あなた x x のシステムが新しいシステムをインストールしたディスクから起動するよう x x 、インストールメディア (CD-ROM、フロッピー) が除かれていることを確認 x x してください。 x x x x 戻る 続ける x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj そのまま 続ける Abort the installationThe system is going down NOW! Sent SIGTERM to all processes Sent SIGKILL to all processes Requesting system reboot [28071.652462] Restarting system. Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Apr 10 2007 - 18 10 08) Marvell version 1.12.1 - TINY DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M) Done NAND 256 MB Soc 88F5182 A2 CPU ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0 host mode USB 1 host mode PCI 0 PCI Express Root Complex Interface PCI 1 Conventional PCI, speed = 33000000 Net egiga0 [PRIME] Using 88E1118 phy hit any key to switch tftp boot. Hit any key to stop autoboot 2 1 0 system_bootend Hit any key to stop autoboot 3 2 1 0 Reset IDE Marvell Serial ATA Adapter Integrated Sata device found Device 0 OK Model Hitachi HTS542525K9SA00 Firm BBFOC31P Ser# 080422BB6F00WDDDBT6G Type Hard Disk Supports 48-bit addressing Capacity 238475.1 MB = 232.8 GB (488397168 x 512) Using device ide0, partition 1 Loading from block device ide device 0, partition 1 Name hda1 Type U-Boot File /uImage.buffalo 1484072 bytes read Using device ide0, partition 1 Loading from block device ide device 0, partition 1 Name hda1 Type U-Boot File /initrd.buffalo 2342569 bytes read stop_sound ## Booting image at 00100000 ... Image Name kernel 3.2.0-4-orion5x Created 2015-03-10 21 14 02 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1484008 Bytes = 1.4 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02000000 ... Image Name ramdisk 3.2.0-4-orion5x Created 2015-03-10 21 14 03 UTC Image Type ARM Linux RAMDisk Image (gzip compressed) Data Size 2342505 Bytes = 2.2 MB Load Address 00000000 Entry Point 00000000 Verifying Checksum ... OK Starting kernel ... arg console=ttyS0,115200 Uncompressing Linux... done, booting the kernel. [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.2.0-4-orion5x (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 Debian 3.2.65-1+deb7u2 [ 0.000000] CPU Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a0053177 [ 0.000000] CPU VIVT data cache, VIVT instruction cache [ 0.000000] Machine Buffalo/Revogear Kurobox Pro [ 0.000000] Clearing invalid memory bank 0KB@0xffffffff [ 0.000000] Clearing invalid memory bank 0KB@0xffffffff [ 0.000000] Clearing invalid memory bank 0KB@0xffffffff [ 0.000000] Ignoring unrecognised tag 0x00000000 [ 0.000000] Ignoring unrecognised tag 0x00000000 [ 0.000000] Ignoring unrecognised tag 0x00000000 [ 0.000000] Ignoring unrecognised tag 0x41000403 [ 0.000000] Memory policy ECC disabled, Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages 32512 [ 0.000000] Kernel command line console=ttyS0,115200 [ 0.000000] PID hash table entries 512 (order -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries 16384 (order 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries 8192 (order 3, 32768 bytes) [ 0.000000] Memory 128MB = 128MB total [ 0.000000] Memory 123156k/123156k available, 7916k reserved, 0K highmem [ 0.000000] Virtual kernel memory layout [ 0.000000] vector 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] vmalloc 0xc8800000 - 0xfd800000 ( 848 MB) [ 0.000000] lowmem 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] modules 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text 0xc0008000 - 0xc039c088 (3665 kB) [ 0.000000] .init 0xc039d000 - 0xc03c0000 ( 140 kB) [ 0.000000] .data 0xc03c0000 - 0xc03f9fc0 ( 232 kB) [ 0.000000] .bss 0xc03f9fe4 - 0xc045ca7c ( 395 kB) [ 0.000000] NR_IRQS 64 [ 0.000000] sched_clock 32 bits at 166MHz, resolution 5ns, wraps every 25769ms [ 0.000000] Console colour dummy device 80x30 [ 12.620021] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104) [ 12.689711] pid_max default 32768 minimum 301 [ 12.690023] Security Framework initialized [ 12.690207] Mount-cache hash table entries 512 [ 12.690940] Initializing cgroup subsys cpuacct [ 12.690989] Initializing cgroup subsys memory [ 12.691048] Initializing cgroup subsys devices [ 12.691079] Initializing cgroup subsys freezer [ 12.691107] Initializing cgroup subsys net_cls [ 12.691136] Initializing cgroup subsys blkio [ 12.691191] Initializing cgroup subsys perf_event [ 12.691379] CPU Testing write buffer coherency ok [ 12.693894] devtmpfs initialized [ 12.697381] print_constraints dummy [ 12.697835] NET Registered protocol family 16 [ 12.699386] Orion ID MV88F5182-A2. TCLK=166666667. [ 12.703154] Applying Orion-1/Orion-NAS PCIe config read transaction workaround [ 12.703909] PCI bus0 Fast back to back transfers disabled [ 12.710118] bio create slab bio-0 at 0 [ 12.711296] vgaarb loaded [ 12.713280] Switching to clocksource orion_clocksource [ 12.758062] NET Registered protocol family 2 [ 12.791444] IP route cache hash table entries 1024 (order 0, 4096 bytes) [ 12.793204] TCP established hash table entries 4096 (order 3, 32768 bytes) [ 12.793530] TCP bind hash table entries 4096 (order 2, 16384 bytes) [ 12.793675] TCP Hash tables configured (established 4096 bind 4096) [ 12.793708] TCP reno registered [ 12.793748] UDP hash table entries 256 (order 0, 4096 bytes) [ 12.793820] UDP-Lite hash table entries 256 (order 0, 4096 bytes) [ 12.794446] NET Registered protocol family 1 [ 12.794985] Unpacking initramfs... [ 13.350033] Freeing initrd memory 2284K [ 13.350064] NetWinder Floating Point Emulator V0.97 (double precision) [ 13.351510] audit initializing netlink socket (disabled) [ 13.351594] type=2000 audit(0.720 1) initialized [ 13.354742] VFS Disk quotas dquot_6.5.2 [ 13.354999] Dquot-cache hash table entries 1024 (order 0, 4096 bytes) [ 13.355292] msgmni has been set to 245 [ 13.356779] alg No test for stdrng (krng) [ 13.357052] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 13.357092] io scheduler noop registered [ 13.357120] io scheduler deadline registered [ 13.357271] io scheduler cfq registered (default) [ 13.357515] mv_xor_shared mv_xor_shared.0 Marvell shared XOR driver [ 13.393468] mv_xor mv_xor.0 Marvell XOR ( xor cpy ) [ 13.433461] mv_xor mv_xor.1 Marvell XOR ( xor fill cpy ) [ 13.434503] Serial 8250/16550 driver, 2 ports, IRQ sharing disabled [ 13.456143] serial8250.0 ttyS0 at MMIO 0xf1012000 (irq = 3) is a 16550A [ 13.883791] console [ttyS0] enabled [ 13.908120] serial8250.1 ttyS1 at MMIO 0xf1012100 (irq = 4) is a 16550A [ 13.916953] physmap platform flash device 00040000 at f4000000 [ 13.923108] Found SST 39LF020 [ 13.926262] physmap-flash.0 Found 1 x8 devices at 0x0 in 8-bit bank [ 13.932633] number of JEDEC chips 1 [ 13.970360] NAND device Manufacturer ID 0x20, Chip ID 0xda (ST Micro NAND 256MiB 3,3V 8-bit) [ 13.979166] Scanning device for bad blocks [ 14.015475] Bad eraseblock 854 at 0x000006ac0000 [ 14.078859] Creating 3 MTD partitions on "orion_nand" [ 14.084075] 0x000000000000-0x000000400000 "uImage" [ 14.091634] 0x000000400000-0x000004400000 "rootfs" [ 14.099387] 0x000004400000-0x000010000000 "extra" [ 14.108359] mousedev PS/2 mouse device common for all mice [ 14.114902] i2c /dev entries driver [ 14.123016] rtc-rs5c372 0-0032 rs5c372a found, 24hr, driver version 0.6 [ 14.135111] rtc-rs5c372 0-0032 rtc core registered rtc-rs5c372 as rtc0 [ 14.144416] TCP cubic registered [ 14.147659] NET Registered protocol family 17 [ 14.152153] Registering the dns_resolver key type [ 14.156974] VFP support v0.3 not present [ 14.162261] registered taskstats version 1 [ 14.168196] rtc-rs5c372 0-0032 setting system clock to 2015-03-10 21 15 35 UTC (1426022135) [ 14.176814] Initializing network drop monitor service [ 14.183495] Freeing init memory 140K Loading, please wait... [ 14.362125] udevd[52] starting version 175 [ 14.920528] SCSI subsystem initialized [ 15.152042] sata_mv sata_mv.0 slots 32 ports 2 [ 15.212006] scsi0 sata_mv [ 15.221725] scsi1 sata_mv [ 15.231175] ata1 SATA max UDMA/133 irq 29 [ 15.235359] ata2 SATA max UDMA/133 irq 29 [ 15.743454] ata1 SATA link up 1.5 Gbps (SStatus 113 SControl 300) [ 15.783482] ata1.00 ATA-8 Hitachi HTS542525K9SA00, BBFOC31P, max UDMA/133 [ 15.790451] ata1.00 488397168 sectors, multi 0 LBA48 NCQ (depth 31/32) [ 15.853498] ata1.00 configured for UDMA/133 [ 15.858597] scsi 0 0 0 0 Direct-Access ATA Hitachi HTS54252 BBFO PQ 0 ANSI 5 [ 16.213416] ata2 SATA link down (SStatus 0 SControl 300) [ 16.290683] sd 0 0 0 0 [sda] 488397168 512-byte logical blocks (250 GB/232 GiB) [ 16.301571] sd 0 0 0 0 [sda] Write Protect is off [ 16.306835] sd 0 0 0 0 [sda] Write cache enabled, read cache enabled, doesn t support DPO or FUA [ 16.362928] sda sda1 sda2 sda3 sda5 [ 16.374243] sd 0 0 0 0 [sda] Attached SCSI disk Begin Loading essential drivers ... done. Begin Running /scripts/init-premount ... done. Begin Mounting root file system ... Begin Running /scripts/local-top ... done. Begin Running /scripts/local-premount ... done. [ 17.643965] EXT4-fs (sda2) mounted filesystem with ordered data mode. Opts (null) Begin Running /scripts/local-bottom ... done. done. Begin Running /scripts/init-bottom ... done. INIT version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [....] Starting the hotplug events dispatcher udevd[ 21.375725] udevd[248] starting version 175 [ ok . [....] Synthesizing the initial hotplug events...[ 22.291560] mv643xx_eth MV-643xx 10/100/1000 ethernet driver version 1.4 [ 22.366532] mv643xx_eth smi probed [ 22.661027] usbcore registered new interface driver usbfs [ 22.790017] usbcore registered new interface driver hub [ 22.852682] usbcore registered new device driver usb [ 22.860997] ehci_hcd USB 2.0 Enhanced Host Controller (EHCI) Driver [ 22.917271] alg hash Test 6 failed for mv-hmac-sha1 [ 22.922338] 00000000 9a 5e 0d 81 ff f1 0b 69 3b 73 88 c8 d6 c9 13 d9 [ 22.928838] 00000010 06 e3 53 3e [ ok [ 23.111259] mv643xx_eth_port mv643xx_eth_port.0 eth0 port 0 with MAC address XX XX XX XX XX XX [ 23.179638] orion-ehci orion-ehci.0 Marvell Orion EHCI [ 23.239391] orion-ehci orion-ehci.0 new USB bus registered, assigned bus number 1 done. [ 23.333568] orion-ehci orion-ehci.0 irq 17, io mem 0xf1050000 [ 23.371174] orion-ehci orion-ehci.0 USB 2.0 started, EHCI 1.00 [ 23.441050] usb usb1 New USB device found, idVendor=1d6b, idProduct=0002 [ 23.447952] usb usb1 New USB device strings Mfr=3, Product=2, SerialNumber=1 [ 23.455210] usb usb1 Product Marvell Orion EHCI [ 23.459915] usb usb1 Manufacturer Linux 3.2.0-4-orion5x ehci_hcd [ 23.466125] usb usb1 SerialNumber orion-ehci.0 [ 23.528137] hub 1-0 1.0 USB hub found [ 23.531924] hub 1-0 1.0 1 port detected [....] Waiting for /dev to be fully populated...[ 23.581341] orion-ehci orion-ehci.1 Marvell Orion EHCI [ 23.622006] orion-ehci orion-ehci.1 new USB bus registered, assigned bus number 2 [ 23.693531] orion-ehci orion-ehci.1 irq 12, io mem 0xf10a0000 [ 23.714740] orion-ehci orion-ehci.1 USB 2.0 started, EHCI 1.00 [ 23.770882] usb usb2 New USB device found, idVendor=1d6b, idProduct=0002 [ 23.777755] usb usb2 New USB device strings Mfr=3, Product=2, SerialNumber=1 [ 23.786572] usb usb2 Product Marvell Orion EHCI [ 23.791286] usb usb2 Manufacturer Linux 3.2.0-4-orion5x ehci_hcd [ 23.797527] usb usb2 SerialNumber orion-ehci.1 [ 23.813252] hub 2-0 1.0 USB hub found [ 23.823524] hub 2-0 1.0 1 port detected [ ok done. [....] Activating swap...[ 25.575107] Adding 365564k swap on /dev/sda5. Priority -1 extents 1 across 365564k [ ok done. [ 25.784209] EXT4-fs (sda2) re-mounted. Opts (null) [....] Checking root file system...fsck from util-linux 2.20.1 /dev/sda2 clean, 28999/15228928 files, 1152291/60895488 blocks [ ok done. [ 26.623887] EXT4-fs (sda2) re-mounted. Opts errors=remount-ro [....] Creating compatibility symlink from /etc/mtab to /proc/mounts. ...[warn (warning). [....] Cleaning up temporary files... /tmp[ ok . [....] Activating lvm and md swap...[ ok done. [....] Checking file systems...fsck from util-linux 2.20.1 /dev/sda1 clean, 19/124496 files, 24420/248832 blocks [ ok done. [....] Mounting local filesystems...[ ok done. [....] Activating swapfile swap...[ ok done. [....] Cleaning up temporary files...[ ok . [....] Setting kernel variables ...[ ok done. [....] Configuring network interfaces...[ ok done. [....] Starting rpcbind daemon...[ 39.283999] NET Registered protocol family 10 [ ok [ 39.856487] ADDRCONF(NETDEV_UP) eth0 link is not ready . [....] Starting NFS common utilities statd[ 40.687439] RPC Registered named UNIX socket transport module. [ 40.693454] RPC Registered udp transport module. [ 40.698162] RPC Registered tcp transport module. [ 40.702863] RPC Registered tcp NFSv4.1 backchannel transport module. [ 40.794613] FS-Cache Loaded [ 40.951004] FS-Cache Netfs nfs registered for caching [ 41.029764] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). idmapd[ ok . [ 41.634490] mv643xx_eth_port mv643xx_eth_port.0 eth0 link up, 100 Mb/s, full duplex, flow control disabled [ 41.644559] ADDRCONF(NETDEV_CHANGE) eth0 link becomes ready [....] Cleaning up temporary files...[ ok . [....] Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix[ ok . INIT Entering runlevel 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting rpcbind daemon...[....] Already running.[ ok . [....] Starting NFS common utilities statd idmapd[ ok . [....] Starting enhanced syslogd rsyslogd[ ok . [....] Starting deferred execution scheduler atd[ ok . [....] Starting periodic command scheduler cron[ ok . [....] Starting MTA exim4[ ok . [....] Starting OpenBSD Secure Shell server sshd[ ok . [....] Starting Daemon for Linkstation/Kuro micro controller micro-evtd[ ok . Debian GNU/Linux 7 debian ttyS0 debian login root Password Linux debian 3.2.0-4-orion5x #1 Debian 3.2.65-1+deb7u2 armv5tel The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@debian ~# インストール完了! 設置のため一度シャットダウン root@debian ~# shutdown -h now Broadcast message from root@debian (pts/0) (Wed Mar 11 06 16 53 2015) The system is going down for system halt NOW! INIT Switching to runlevel 0 INIT Sending processe[info] Using makefile-style concurrent boot in runlevel 0. [....] Stopping deferred execution scheduler atd[ ok . [....] Stopping MTA exim4_listener[ ok . [....] Stopping Daemon for Linkstation/Kuro micro controller micro-evtd[ ok . [....] Asking all remaining processes to terminate...[ ok done. [....] All processes ended within 1 seconds...[ ok done. [....] Stopping enhanced syslogd rsyslogd[ ok . [....] Stopping NFS common utilities idmapd statd[ ok . [info] Saving the system clock. [info] Hardware Clock updated to Wed Mar 11 06 16 58 JST 2015. [....] Stopping rpcbind daemon...rpcbind rpcbind terminating on signal. Restart with "rpcbind -w" [ ok . [....] Deconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2 Copyright 2004-2011 Internet Systems Consortium. All rights reserved. For info, please visit https //www.isc.org/software/dhcp/ Listening on LPF/eth0/XX XX XX XX XX XX Sending on LPF/eth0/XX XX XX XX XX XX Sending on Socket/fallback DHCPRELEASE on eth0 to 192.168.3.1 port 67 [ ok done. [....] Deactivating swap...[ ok done. [....] Unmounting local filesystems...[ ok done. [ 99.630022] EXT4-fs (sda2) re-mounted. Opts (null) [info] Will now halt. [ 101.956390] sd 0 0 0 0 [sda] Synchronizing SCSI cache [ 101.961857] sd 0 0 0 0 [sda] Stopping disk [ 102.463762] Power down. [ 102.466219] kurobox_pro_power_off triggering power-off... [ 102.539404] ata1 exception Emask 0x10 SAct 0x0 SErr 0x180000 action 0x6 frozen [ 102.546792] ata1 edma_err_cause=00000020 pp_flags=00000000, SError=00180000 [ 102.553886] ata1 SError { 10B8B Dispar } [ 102.558019] ata1 hard resetting link
https://w.atwiki.jp/tuntun01/pages/10.html
著者 Chris Lale 日本語訳 stsunoda@gmail.com 変更履歴 Revision 1.0 For more detail see 11th September 2005 Revised by [[User Manager|Chris Lale]] Revision 1.1 7th January 2006 Revised by [[User Manager|Chris Lale]] Modified for NewbieDOC. Changed title from What you might like to know before you install Debian GNU/Linux . 最新版 このドキュメントの最新版は、http //newbiedoc.berlios.de からダウンロードできます。 要約 この記事は、Debian GNU/Linux の基本的な機能の一部を説明します。これらは、Debian をあなたのコンピュータにインストールする前に知りたいと思うことです。 Debian とは Debian GNU/Linux は、フリーなオペレーションシステムです。オペレーションシステムのエンジンは、カーネルと呼ばれます。Debian は、Linux カーネルを利用します。カーネルを使わせるオペレーションシステムの残りの部分は、数多くのツールから構成されます。Debian では、これらのツールは GNU プロジェクトにより供給されています。 Windows の置き換えとして Debian をインストールできますし、デュアルブートシステムの一部としてもインストールできます。 より詳しいことを知りたい場合は、http //www.jp.debian.org/intro/about を訪れてください。 Linux ファイルシステム Windows は、ドライブそれぞれに対してディレクトリツリーが存在します。各ツリーの名前は、ドライブレターで始まります。 Linux には、ファイルシステムと呼ばれる一つのツリーしか存在しません。ツリーは、ルートディレクトリを示す記号 / で始まります。(root と呼ばれる特別なユーザが存在します。root ユーザのホームディレクトリは、 /root です。 / と /root を取り違えないでください。) ルートディレクトリには、複数のサブディレクトリが存在します。 bin - 基本的なコマンドバイナリが含まれる boot - ブートローダ用のスタティックファイルが含まれる dev - デバイスファイル etc - ホストに特有のシステム設定ファイルが含まれる home- ユーザのホームディレクトリ lib- 基本的な共有ライブラリとカーネルモジュールが含まれる media - リムーバブルメディアへのマウントポイント mnt- ファイルシステムを一時的にマウントするためのマウントポイント opt - アドオンアプリケーションソフトウェアパッケージが含まれる root - root ユーザ用ホームディレクトリ sbin - 基本的なシステムバイナリが含まれる tmp - 一時的ファイルが含まれる usr - (ユーザがインストールしたアプリケーションのための) 二次階層 var - 可変領域 Linux では、ユーザはどの物理的なドライブに特定のデータが含まれているのかを気にする必要はありません。 ここが、どのドライブ (C や D など) を使えば良いのかを知る必要がある Windows と異なる点です。 Linux では、その代わりにディレクトリツリーの特定のマウントポイントにドライブをマウントします。例えば、Windows にて一代目の CD ドライブは D または E や別の他のドライブレターだったりするかもしれませんし、ドライブを追加したり削除したりすると、ドライブレターが変わってしまうかもしれません。 Linux では、一代目の CD ドライブのマウントポイントは /media/cdrom0 です。ドライブを追加削除してもマウントポイントは変わりません。ただし、 /cdrom のようなファイルシステムへの便利なショートカットを追加できます。 Windows でアプリケーションをインストールする場合、実行ファイルや関連ファイルは、通常 C \Program Files にインストールされます。Linux では、次に示すように、ファイルの種類に応じてインストール先が異なります。 アプリケーションの実行ファイル (バイナリ) は、/usr/bin へ。 マニュアルは、 /usr/share/man へ。 他のドキュメントは、/usr/share/doc /code へ。 Linux には、レジストリが存在しません。設定データは、通常テキストファイル形式で /etc/ にインストールされます。 ディスクデバイスとパーティション Windows では、プライマリマスタ IDE ドライブにある有効な第一ドライブは C と呼ばれます。他のパーティション (および CDROM ドライブ) は、D 、E などと呼ばれます。 Windows 98 以前では、ドライブレターの割り当ては、自動で行われ、固定されていました。Windows NT 以降から、ドライブレターの一部を再割り当て可能になりました。 Linux では、"全てがファイルだ" と良くいわれます。ドライブの場合には、プライマリ IDE マスタードライブの全体は、 /dev/hda デバイスであり、プライマリスレーブは、 /dev/hdb セカンダリマスターは、 /dev/hdc そしてセカンダリスレーブは /dev/hdd です。 一台目の SCSI ハードディスクは、 /dev/sda 二台目は /dev/sdb などになります。SCSI CD または SCSI DVD ドライブは、 /dev/scd0 などです。 (フラットケーブルで接続された) パラレル ATA ドライブは、IDE ATA ドライブ (/dev/hda) として扱われます。 (フラットケーブルで接続されない) シリアル ATA ドライブは、SCSI ドライブ (/dev/sda、/dev/sdb など) として 扱われます。 ハードディスク上に 4 個までのプライマリパーティションを作成できます。それらの一つは、63 個までの他の論理パーティション を含む拡張パーティションにできます。 Windows のユーザは、たった一つのプライマリパーティションと、論理パーティションを含む一つの拡張パーティションしか使えません。 Linux は、全てのパーティションを使えますが、Debian で 1 ディスク当たり 20 個以上のパーティションを使う場合には、手動で設定する必要があります。 /dev/hda が、ふたつのプライマリパーティションにフォーマットされた場合、パーティションはそれぞれ /dev/hda1 と /dev/hda2 となります。 典型的なデュアルブートシステム (Windows/Linux )では、プライマリパーティション 1 は Windows のドライブ C になりますので、Linux からは /dev/hda1 としてアクセスできます。 パーティション 2 (/dev/hda2) は、Windows の拡張パーティションですが、Windows からは直接アクセスする必要はありません。 パーティション 3 とパーティション 4 は使われませんし、パーティション 5 以降は、拡張パーティション内のパーティションです。パーティション 5 は、ドライブ D 又は /dev/hda5 となります。 CD ドライブ又は DVD ドライブはパーティション分けできません。典型的な CD ドライブは、/dev/hdc (IDE 接続時) 又は /dev/scd0 (SCSI 接続時) となります。 Windows で二つのフロッピードライブ A と B がある場合、 Linux では、フロッピードライブは /dev/fd0 と /dev/fd1 になります。 デバイスのマウントとアンマウント Linux では、全てはファイルです - ハードディスクなどのデバイスを含みます。ディスクを使うためには、デバイスをファイルシステム中のマウントポイントにマウントする必要があります。 そうすると、マウントポイントからディスクにアクセスできます。例えば、システムのバックアップを取るために別のハードディスクを使いたいとします。EXT3 フォーマットされた別のディスク /dev/hdb1 を追加姿態場合には、マウントポイントとして新しいディレクトリ /mnt/backup を作成できます。 そして、 mount コマンドにより、次のようにパーティションをマウントできます。 $ mount -t ext3 /dev/hdb1 /mnt/backup そして、 umount コマンドを使って次のようにアンマウントします。 $ umount /mnt/backup 又は $ umount /dev/hdb1 /etc/fstab という設定ファイルには、ブート時に自動でマウントされるデバイスの詳細が含まれます。 automounter をインストールすれば、リムーバブルデバイスを自動でマウントするように設定できます。 X-window 用のデスクトップ環境 Gnome には、自動マウント機能が標準で含まれています。マウントされたメディアは、メディア上の全てのファイルに関わるプロセスが全て終了するまで、アンマウントやイジェクトができません。 Gnome で CD をアンマウントするには、CD アイコンを右クリックしてイジェクトを選択するだけです。 ファイルシステムフォーマット Linux で最も用いられているファイルシステムフォーマットは、EXT2 (the Second Extended file system format) です。最近のディストリビューションは、EXT3 ファイルシステムを使っており、これは、EXT2 にジャーナリングシステムを追加したものです。ジャーナルは、データの損失などを引き起こしかねないファイルシステムデータの破損を保護するものです。 障害に対して強固になるだけでなく、EXT2/3 パーティションは効率的かつデフラグメンテーションが必要ありません。 ファイルシステムチェッカ fsck によりデータ破損チェックおよび修復が可能です。これは、Windows における scandisk に似たものです。 Windows は、Linux でフォーマットされたディスクにアクセスできませんが、Linux は、FAT、FAT32 などの他のフォーマットを読み書きできます。しかしながら、NFTS ファイルシステムパーティションへの書き込みは、おすすめできません。 (http //linux-ntfs.sourceforge.net/info/ntfs.html#3.2 をご覧ください) Linux におけるマルウェア There has not been a real Linux virus epidemic in the wild. This is because a virus (or any other program) can only carry out actions that the user running the virus is allowed to do. Normal users do not have enough privileges to cause damage to the system. Only user root can do that. You would have to run an untrusted binary as root to run any risk. Desktop users routinely do not log in asroot, and only switch user to root to run specific, trusted software. You have to deliberately try to circumvent this protection and know the root password to be at risk. Worms exploit known security holes. Generally, there are very few new or unknown holes. Defeating worms and trojans is as easy as keeping software up to date. There are Anti-Virus scanners available for Linux (but generally speaking no Linux viruses). However, they will pick up Windows viruses and stop you spreading them to Windows users. == Linux security == The most important practice is never to login as user root (the superuser). Only user root has access to everything - that is why you must be root during the installation process. Always login as a normal user (low privileged user). If you need root privileges for an application, switch user to root as follows certain X applications, eg the software installer Synaptic, prompt for user root s password, for other X applications, run code gksu /code followed by space followed by the command that launches the application, for console commands, switch user with the code su /code command to obtain user root s prompt ( code # /code ) then issue the command. When you have finished, enter code exit /code or press ctrl-D to resume as the normal user ( code $ /code prompt). Debian is installed with security features enabled by default. You can disable features that you do not need, but you are unlikely to do this unless you know what you are doing. This approach means that you are unlikely to make yourself vulnerable through ignorance or accident. For a computer connected to the internet, keeping the system constantly up to date means that security holes are plugged almost as soon as they are discovered. You need this line (uncommented ie without a preceding code # /code ) in your code /etc/apt/sources.list /code file nowiki deb http //security.debian.org/ sarge/updates main contrib non-free /nowiki == Linux bugs == Anyone finding a bug in Debian can report it using the bug tracking system. Most of the bugs are sorted out before the software moves into the stable distribution ( ie in the testing or unstable distributions). See http //www.debian.org/Bugs/. == Running Windows applications == There are commercial emulators such as Vmware. There is free Wine which works by making systmem calls directly to Linux (Wine Is Not an Emulator). A commercial version called Crossover Office is very stable for apps like MS Office (see http //www.codeweavers.com/products/cxoffice/). There is also a commercial version for Windows games called cedega (http //www.transgaming.com/). == Installing software == The traditional way of installing Linux software is by compiling the binary (executable file) on your own computer from source code. This is actually quite easy and is one of the reasons why viruses are not a problem in Linux - they normally hide in pre-compiled binaries but are obvious foreigners in source code. The drawback for the novice user is that Linux is modular and an application may depend on one or more other applications, which in turn may depend on other applications, etc. So you may find that compilation fails because you have not installed all the necessary depenedencies. This is solved by Debian s packaging system Apt (Red Hat Linux has an alternative packaging system called Rpm). In Debian, the application is pre-compiled for your computer s architechture and packaged together with associated files, configuration data, etc in a single code .deb /code file. The package also knows which other packages (dependencies) are needed and installs them too automatically. You can install packages with Synaptic (X) or code aptitude /code or code apt-get /code (commandline). == Help and support == Most problems can be solved by reading the documentation man page (eg code man man /code diplays the manual for the man command) info page (the code info /code command) Dwww (man and info pages with a web interface) files in code /usr/share/doc/app-name /code HOWTOs (eg the Linux Documentation Project (http //tldp.org/) Debian documentation on the web (http //www.debian.org/doc/) Unofficial Debian websites eg http //www.debianhelp.org/ internet home page for the application internet wikis internet forums internet mailing list archives (try Google with site lists.debian.org search-term-1 search-term-2 ... ) If the problem persists read http //www.catb.org/~esr/faqs/smart-questions.html and ask at NewbieDOC wiki Debian-user mailing list (http //lists.debian.org/debian-user/) Debian irc (see http //www.debian.org/support) your local Linux User Group (LUG) (http //www.lug.org.uk/) == Bibliography == http //www.pathname.com/fhs/ Linux Filesystem Hierarchy Standard http //www.pathname.com/fhs/ Comparison of Windows and Linux drives and partitions http //linux.org.mt/article/partnames?locale=mt Linux device names for IDE and SCSI http //www.tldp.org/HOWTO/Partition/partition-2.html Viruses, security etc http //www.patentmatics.org/pub2002/pub121.htm http //www.dwheeler.com/oss_fs_why.pdf http //www.seifried.org/security/index.php/Linux_and_Viruses http //www.theregister.co.uk/security/security_report_windows_vs_linux/ http //www.debian.org/security/ == Appendix A Licence == Copyright (c) 2005 Chris Lale. chrislale@users.berlios.de. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license can be found at http //www.fsf.org/copyleft/fdl.html. - -